Summary of HTML tags and Their Attributes

Tag Attribute Use
<Hx> ALIGN= Left, Right, Center; Heading x=1-6
<DIV> ALIGN= Left, Right, Center; a section of text
<P> ALIGN= Left, Right, Center; paragraph text
<CENTER>* none Should use the "ALIGN=Center" Options in <P> or <DIV> instead
<BR># none Break, Start a new line
<HR># with none a horizontal line completely across page
    " SIZE=N Thickness of line in N pixels
    " WIDTH=X Length of line in X pixels
    " WIDTH="X%" Length of line as "X%" of page width
    " ALIGN= Left, Right, Center horizontal line
    " NOSHADE Line appears without 3-D shading
<B> none Bold text
<I> none Italize text
<U>* none Underline text
<SUB> none H20
<SUP> none E=mc2
<TT> none Typewriter font
<STRIKE> none Strike-through text
<S>* none Strike-through text
<CITE> none A Citation
<CODE> none Sample code
<SAMP> none Sample text
<EM> none Emphasized text
<KBD> none Keyboard text
<STRONG> none Strong text
<DFN> none Definition text
<KEY> none A Keyword
<VAR> none A Variable
<BIG> none Larger text
<SMALL> none Smaller text
<BLOCKQUOTE> none Left, right indents long quotes
<ADDRESS> none
Name, address, or page copyright information
<PRE> none Preformatted text
<FONT>* SIZE=N N=1-7 to size font, default=3; or +N or -N respect to BASEFONT
    " FACE=list list=Arial, Times New Roman, Garamond, Courier New, ...
<BASEFONT>*# SIZE=N N=1-7 to size font, default=3
<BLINK> none Blinking text; an unpopular Netscape extension
<NOBR> none Will not wrap enclosed text; an HTML extension
<WBR># none Will wrap text at this point, if necessary; an HTML extension
# Tag has no end tag
*Deprecated, i.e., supported but not recommended in HTML 4

Adapted from Table 5.2, pages 152-154, Teach Yourself Web Publishing with HTML 4 in 14 Days by Laura Lemay; Sams.net Publishing, 1997.


Continue to Project 4; return to Project 3; or go back to the Table of Contents.
Last updated: November 8, 1997.