This appendix contains the master list of HTML tags that appear in this book. It includes all tags and attributes listed in the HTML 4.01 specification plus those that are browser-specific and nonstandard (but well-supported).
A number of attributes in the HTML 4.01 specification are shared by nearly all elements. To save space, they have been abbreviated in this appendix as they are in the specification, as follows:
%coreattrs indicates the collection of core HTML attributes according to the 4.0 specification:
%i18n stands for "internationalization" (i + 18 characters + n):
%events indicates the events used by scripting languages which are applicable to the element:
onlick, ondblclick, onmousedown, onmouseup, onmouseover, onmousemove, onmouseout, onkeypress, onkeydown, onkeyup
Tag |
Description |
Attributes |
Chapter |
---|---|---|---|
Anchor (link) |
accesskey, charset, coords, href, hreflang, name, rel, rev, shape, tabindex, target, type, %coreattrs, %i18n, %events Events: onfocus, onblur |
11 |
|
Abbreviation |
%coreattrs, %i18n, %events |
10 |
|
Acronym |
%coreattrs, %i18n, %events |
10 |
|
Information about the author |
%coreattrs, %i18n, %events |
10 |
|
Java applet |
align, archive, alt, code, codebase, height (required), hspace, name, object, vspace, width (required), %coreattrs |
12 |
|
Area (in client-side imagemap) |
accesskey, alt, coords, href, nohref, shape, tabindex, target, %coreattrs, %i18n, %events Events: onfocus, onblur |
11 |
|
Bold text style |
%coreattrs, %i18n, %events |
10 |
|
Base URL |
href, target |
10 |
|
Basefont |
color, face, id, size (required) |
10 |
|
Bidirectional override |
%coreattrs, %i18n |
7 |
|
Background sound |
src (required), loop |
24 |
|
Big text |
%coreattrs, %i18n, %events |
10 |
|
Blink |
(none) |
10 |
|
Blockquote |
%coreattrs, %i18n, %events |
10 |
|
Body |
alink, background, bgcolor, link, text, vlink, %coreattrs, %i18n, %events Events: onload, unload IE only: bgproperties, leftmargin, rightmargin, topmargin, bottommargin NN only: marginwidth, marginheight |
9 |
|
Forced line break |
clear, %coreattrs |
10 |
|
Button (form element) |
accesskey, disabled, name, tabindex, type, value, %coreattrs, %i18n, %events Events: onfocus, onblur |
16 |
|
Caption (of a table) |
align, %coreattrs, %i18n, %events Nonstandard: summary, valign |
13 |
|
Centers contained elements |
%coreattrs, %i18n, %events |
10 |
|
Citation |
%coreattrs, %i18n, %events |
10 |
|
Code fragment |
%coreattrs, %i18n, %events |
10 |
|
Column (within a table) |
align, char, charoff, span, valign, width, %coreattrs, %i18n, %events |
13 |
|
Column group (within a table) |
align, char, charoff, span, valign, width, %coreattrs, %i18n, %events |
13 |
|
Comment |
(none) |
8 |
|
Definition (part of definition list) |
compact, %coreattrs, %i18n, %events |
10 |
|
Deleted text |
cite, datetime, %coreattrs, %i18n, %events |
10 |
|
Defining instance |
%coreattrs, %i18n, %events |
10 |
|
Directory list |
compact, %coreattrs, %i18n, %events |
10 |
|
Division |
align, %coreattrs, %i18n, %events |
10 |
|
Definition list |
compact, %coreattrs, %i18n, %events |
10 |
|
Definition term (part of definition list) |
%coreattrs, %i18n, %events |
10 |
|
Emphasized text |
%coreattrs, %i18n, %events |
10 |
|
Embedded object |
align, alt, border, code, codebase, frameborder, height, hidden, hspace, name, palette, pluginspage, pluginurl, src, type, units, vspace, width |
12 |
|
Fieldset (group of form elements) |
%coreattrs, %i18n, %events |
16 |
|
Font style |
color, face, size, %coreattrs, %i18n |
10 |
|
Interactive form |
accept, accept-charset, action (required), enctype, method, name, target, %coreattrs, %i18n, %events Events: onsubmit, onreset |
16 |
|
Frame |
frameborder, longdesc, marginwidth, marginheight, name, noresize, scrolling, src, %coreattrs Nonstandard: bordercolor |
14 |
|
Frameset |
cols, rows, %coreattrs Events: onload, unload Nonstandard: border, bordercolor, frameborder, framespacing |
14 |
|
Headings, level 1 through 6 |
align, %coreattrs, %i18n, %events |
10 |
|
Head of document |
profile, %i18n |
9 |
|
Horizontal rule |
align, noshade, size, width, %coreattrs, %i18n, %events |
12 |
|
HTML document |
%i18n |
9 |
|
Italic |
%coreattrs, %i18n, %events |
10 |
|
Inline frame (floating frame) |
align, frameborder, height, longdesc, marginheight, marginwidth, name, scrolling, src, width, %coreattrs, %i18n, %events Nonstandard: hspace, noresize, vspace |
14 |
|
Embedded image |
align, alt (required), border (deprecated), height, hspace, ismap, longdesc, lowsrc, src (required), usemap, vspace, width, %coreattrs, %i18n, %events IE only: controls, dynsrc, loop, start |
12 |
|
Input (form control) [Input types: text, password, checkbox, radio, submit, reset, file, hidden, image, button] |
accept, accesskey, align, alt, checked, disabled, ismap, maxlength, name, readonly, size, src, tabindex, type, usemap, value, %coreattrs, %i18n, %events Events: onfocus, onblur, onselect, onchange |
16 |
|
Inserted text |
cite, datetime, %coreattrs, %i18n, %events |
10 |
|
Searchable index |
prompt, %coreattrs, %i18n |
16 |
|
Keyboard text |
%coreattrs, %i18n, %events |
10 |
|
Label (for form elements) |
accesskey, for, %coreattrs, %i18n, %events Events: onfocus, onblur |
16 |
|
Creates a layer |
above, background, below, bgcolor, clip, height, id, left, name, pagex, pagey, src, top, visibility, width, z-index |
29 |
|
Legend (for form fieldsets) |
accesskey, align, %coreattrs, %i18n, %events |
16 |
|
List item |
start, type, value, %coreattrs, %i18n, %events |
10 |
|
Link |
charset, href, hreflang, rel, rev, media, target, type, %coreattrs, %i18n, %events |
11 |
|
Map (client-side imagemap) |
name (required), %coreattrs, %i18n, %events |
11 |
|
Marquee |
behavior, bgcolor, direction, height, hspace, loop, scrollamount, scrolldelay, vspace,width |
12 |
|
Menu list |
compact, %coreattrs, %i18n, %events |
10 |
|
Meta information |
content (required), http-equiv, name, scheme, %i18n |
9 |
|
Multi-column formatted text |
cols, gutter, width |
13 |
|
Prevents line breaks from occurring |
(none) |
10 |
|
Alternative content when embedded media cannot be displayed. |
(none) |
12 |
|
Content that renders on browsers without frames support |
%coreattrs, %i18n, %events |
14 |
|
Alternative content for scripts |
%coreattrs, %i18n, %events |
28 |
|
Generic embedded object |
align, archive, border, classid, codebase, codetype, data, declare, height, hspace, name, standby, tabindex, type, vspace, width, %coreattrs, %i18n, %events |
12 |
|
Ordered list (numbered) |
compact, start, type, %coreattrs, %i18n, %events |
10 |
|
Option group (in a form) |
disabled, label (required), %coreattrs, %i18n, %events |
16 |
|
Option (in a form) |
disabled, label, selected, value, %coreattrs, %i18n, %events |
16 |
|
Paragraph |
align, %coreattrs, %i18n, %events |
10 |
|
Parameter (named property value) |
id, name (required), value, valuetype, type |
12 |
|
Preformatted text |
width, %coreattrs, %i18n, %events |
10 |
|
Short inline quotation |
cite, %coreattrs, %i18n, %events |
10 |
|
Strikethrough text |
%coreattrs, %i18n, %events |
10 |
|
Sample program output |
%coreattrs, %i18n, %events |
10 |
|
Script statement |
charset, defer, event, for, language, src, type (required) |
12 |
|
Selection menu (in a form) |
disabled, multiple, name, size, tabindex, %coreattrs, %i18n, %events Events: onfocus, onblur, onchange |
16 |
|
Small text |
%coreattrs, %i18n, %events |
10 |
|
Spacer |
align, height, size, type, width |
12 |
|
Span (generic inline text container) |
%coreattrs, %i18n, %events |
9 |
|
Strikethrough text |
%coreattrs, %i18n, %events |
10 |
|
Strongly emphasized text |
%coreattrs, %i18n, %events |
10 |
|
Embedded stylesheet |
type, media, title, %i18n |
17 |
|
Subscript |
%coreattrs, %i18n, %events |
10 |
|
Superscript |
%coreattrs, %i18n, %events |
10 |
|
Table |
align, bgcolor, border, cellpadding, cellspacing, frame, rules, summary, width, %coreattrs, %i18n, %events Nonstandard:background, height, hspace, vspace IE only: bordercolor, bordercolorlight, bordercolordark |
13 |
|
Table body |
align, char, charoff, valign, vspace |
13 |
|
Table data cell |
abbr, align, axis, bgcolor, char charoff, colspan, headers, height, nowrap, rowspan, scope, valign, width, %coreattrs, %i18n, %events Nonstandard: background IE only: bordercolor, bordercolorlight, bordercolordark |
13 |
|
Multiline text area (in a form) |
accesskey, cols (required), disabled, name, readonly, rows (required), tabindex, wrap, %coreattrs, %i18n, %events Events: onfocus, onblur, onchange |
16 |
|
Table foot |
align, char, charoff, valign, %coreattrs, %i18n, %events |
13 |
|
Table header cell |
abbr, align, axis, char, charoff, bgcolor, colspan, headers, height, nowrap, rowspan, scope, valign, width, %coreattrs, %i18n, %events Nonstandard: background IE only: bordercolor, bordercolorlight, bordercolordark |
13 |
|
Table head |
align, char, charoff, valign, %coreattrs, %i18n, %events |
13 |
|
Document title |
%i18n |
9 |
|
Table row |
align, char, charoff, bgcolor, valign, %coreattrs, %i18n, %events IE only: bordercolor, bordercolorlight, bordercolordark |
13 |
|
Teletype (monospaced) text |
%coreattrs, %i18n, %events |
10 |
|
Underlined text |
%coreattrs, %i18n, %events |
10 |
|
Unordered (bulleted) list |
compact, %coreattrs, %i18n, %events |
10 |
|
Variable |
%coreattrs, %i18n, %events |
10 |
|
(none) |
10 |
Copyright © 2002 O'Reilly & Associates. All rights reserved.