Basic HTML4 TAGS

 

Document Structure

<HTML>, <HEAD>, <TITLE>

<BODY> BACKGROUND, BGCOLOR

 

Logical Text Formatting Tags

<ABBR>, <ACRONYM>, <CITE> "citation", <Q> "inline quotation"

<ADDRESS>, <BLOCKQUOTE>

<CODE>, <KBD> "keyboard", <SAMP> "sample output", <TT> "typewriter text", <VAR> "variable"

<EM> "emphasis", <STRONG>

<H1>, <H2>, <H3>, <H4>, <H5>, <H6> "headings"

<PRE> "preformatted"

<SUB> "subscript", <SUP> "superscript"

 

Text Layout Tags

<BR>, <P>

 

Image Tag

<IMG> BORDER, SRC

 

Anchor Tag

<A> HREF, NAME, TITLE, TARGET (name, _blank)

 

List Tags

<OL> "ordered list" START (number), TYPE (1, A, a, I, i)

<UL> "unordered list" TYPE (disc, circle, square)

<LI> "list item"

 

Table Tags

<TABLE> ALIGN, BACKGROUND, BGCOLOR, BORDER, CELLPADDING, CELLSPACING, WIDTH

<TR> "table row"

<TD> "table data"

 

Bad Tags (Actual Text Formatting Tags)

<B>, <I>, <U>, <STRIKE>, <BIG>, <SMALL>, <CENTER>, <FONT>

 

 

More Advanced HTML4 Tags

 

Form Tags

<FORM> ACTION, METHOD (get, post)

<INPUT> TYPE (button, checkbox, file, hidden, password, radio, reset, submit, text)

<BUTTON>, <FIELDSET>, <LABEL>, <LEGEND>, <OPTGROUP>, <OPTION>, <SELECT>, <TEXTAREA>

 

Image-Map Tags

<AREA> COORDS, HREF, SHAPE (rectangle, circle, polygon), <MAP>

Note: use with the <IMG> tag’s USEMAP attribute

 

Programming/Multimedia-related

<APPLET>, <OBJECT>, <PARAM>, <SCRIPT>

 

Frame Tags

<FRAME>, <FRAMESET>, <NOFRAMES>

Note: use SSI or other dynamic technologies instead

 

Other Table Tags

<CAPTION>, <COL>, <COLGROUP>, <TBODY>, <TFOOT>, <TH>, <THEAD>

 

Other List Tags

<DD> "definition data", <DL> "definition list", <DT> "definition term"

 

Other Layout Tags

<DIV>, <SPAN>, <STYLE>, <HR> "horizontal rule"

 

Other Misc Tags (new or deprecated)

<BASE>, <BDO>, <DEL>, <DIR>, <IFRAME>, <INS>, <ISINDEX>, <LINK>, <MENU>, <META>

 

Evil Tags (nonstandard)

<BGSOUND>, <BLINK>, <EMBED>, <KEYGEN>, <LAYER>, <MARQUEE>, <MULTICOL>, <NOBR>, <NOEMBED>, <NOLAYER>, <NOSCRIPT>, <S>, <SERVER>, <SPACER>, <WBR>