The Basics of HTML

5. More About Text Formatting

You can add dozens of textual attributes to your page.
Here is a table that shows some of the things you can do with text:

Looks LikeThe Tags
Regular TextThis is regular text with the default attributes of the web page.
Arial Black Font Face The font face tag
<font face="name of font">Text that will have this font</font>
Bold Text<b>Text to be bolded</b>
Italics<i>Italized Text<i>
Emphasis<em>Emphasize text</em>
Strong<strong>Strong Text</strong>
CitationUsed to cite sources.
*Basefont<basefont size="n">
Placed within the header tag, this sets the size of the font throughout the page. The "n" value is a number between 1 and 7.
font size<font size="-3">The text whose size is going to be changed</font>
Font size can be used in the same way the font color tag is used. The text to be modified is placed within the start and close tags. Font size is relative the text surrounding the text to be modified, or if alone is relative to the entire document. In my example tag above the value -3 is used. This means make the text three times smaller than the rest of the text. Valid values include numbers between -7 and +7 as well as the plain numbers from 0 to 7 (not including zero). An example of this can be found here.
Big<big>Make this text BIG</big>
This tag, like the font size tag, is relative to the surrounding text.
Small<small>Make this text small</small>
This tag, like the font size tag, is relative to the surrounding text.
1003 1003<sub>text to be subscripted here</sub>
<sup>text to be superscripted here</sup>
*preformated text<pre>
Use this tag to have HTML render the text exactly as you entered it into the HTML editor. This includes indents and etc.
strikeout<strike>Strikeout this text</strike>
underline<u>Underline this text</u>
*adding comments<!-- Place your comments here. -->
Comments are invisible to the browser. There purpose is to allow you to make notes to yourself within the HTML page.


Font Size Table

Font Size 1
Font Size 2
Font Size 3
Font Size 4
Font Size 5
Font Size 6
Font Size 7

Creative Commons License
This work is licensed under a Creative Commons License.

(<< Back)     [Home]     (Next >>)
Hosted by www.Geocities.ws

1