A tag that you apply to an individual character is referred to as a character tag. There are two types of character tags, physical and logical.
<B> | Indicates that the text should be bold. | </B> |
<I> | Indicates that the text should be italic. | </I> |
<TT> | Indicates that the text should be used with a font such as Courier that allots the same width to each character. | </TT> |
<BIG> | Indicates that the text should be displayed in a big font. Available in HTML 3.0 or higher. | </BIG> |
<SMALL> | Indicates that the text should be displayed in a small font. Available in HTML 3.0 or higher. | </SMALL> |
<SUB> | Indicates that the text should be displayed as a subscript, in a smaller font if possible. Available in HTML 3.0 or higher. | </SUB> |
<SUP> | Indicates that the text should be displayed as a superscript, in a smaller font if possible. Available in HTML 3.0 or higher. | </SUP> |
<U> | Indicates that the text should be displayed underlined. Not all browsers support this tag. | </U> |
<EM> | Indicates that characters should be emphasized in some way. Usually displayed in italics. | </EM> |
<STRONG> | Emphasizes characters more strongly than <EM>. Usually displayed in a bold font | </STRONG> |
<CODE> | Indicates a sample of code. Usually displayed in a Courier font or a similiar font that allots the same width to each character.
| </CODE> |
<KBD> | Used to offset text that the user should enter. Often displayed in a Courier font or a similiar font that allots the same width to each character. | </KBD> |
<VAR> | Indicates a variable. Often displayed in italics or underlined. | </VAR> |
<CITE> | Indicates short quotes or citations. Often italized by browsers. | </CITE> |
I recommend to my students to use logical tags whenever possible, so your pages are more accessible to the visually impaired.
Continue with Special Characters or return to top of this page.