This appendix provides a quick reference to the elements and attributes of the HTML 4.01 language, as specified by the World Wide Web Consortium. It's based on the information provided in the HTML 4.01 Specification, W3C Recommendation 24 December 1999 (most current version at press time). The latest version of this document can be found at http://www.w3.org/TR/html4/.
To make the information readily accessible, this appendix organizes HTML elements by their function in the following order:
Common Attributes and Events
id, class, style, title, lang, dir, onclick, ondblclick, onmousedown, onmouseup, onmouseover, onmousemove, onmouseout, onkeypress, onkeyup, onkeydown
bdo, body, Comments, div, !DOCTYPE, H1...h6, head, HR, html, meta, span, title
Text Phrases and Paragraphs
acronym, address, blockquote, br, cite, code, del, dfn, em, ins, kbd, p, pre, q, samp, strong, sub, sup, var
Text Formatting Elements
b, basefont, big, font, i, s, small, strike, tt, u
dd, dir, dl, dt, li, menu, ol, ul
a, base, link
caption, col, colgroup, table, tbody, td, tfoot, th, thead, tr
frame, frameset, iframe, noframes
applet, area, img, map, object, param
button, fieldset, form, input, isindex, label, legend, option, select, textarea
Table B.1, located at the end of the appendix, contains a list of character entities.
Within each section, the elements are listed alphabetically and the following information is presented where applicable:
Usage A general description of the element.
Start/End Tag Indicates whether these tags are required, optional, or illegal. Differences between HTML and XHTML are noted.
Attributes Lists the attributes of the element with a short description of its effect.
Deprecated Lists deprecated attributes; that is, attributes that are still supported in HTML 4.01 and in most browsers, but that are in the process of being phased out in favor of newer techniques, such as style sheets.
Empty Indicates whether the element can be empty.
Notes Relates any special considerations when using the element and indicates whether the element is new, deprecated, or obsolete.