Book HomeWeb Design in a NutshellSearch this book

Appendix A. HTML Elements

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:

id

Assigns a unique identifying name to the element

class

Assigns a classification name to the element

style

Associated style information

title

Advisory title/amplification

%i18n stands for "internationalization" (i + 18 characters + n):

lang

specifies the language for the element by its two-character language code

dir

specifies the direction of the element (left to right, or right to left)

%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

<a>

Anchor (link)

accesskey, charset, coords, href, hreflang, name, rel, rev, shape, tabindex, target, type, %coreattrs, %i18n, %events

Events: onfocus, onblur

11

<abbr>

Abbreviation

%coreattrs, %i18n, %events

10

<acronym>

Acronym

%coreattrs, %i18n, %events

10

<address>

Information about the author

%coreattrs, %i18n, %events

10

<applet>(deprecated)

Java applet

align, archive, alt, code, codebase, height (required), hspace, name, object, vspace, width (required), %coreattrs

12

<area>

Area (in client-side imagemap)

accesskey, alt, coords, href, nohref, shape, tabindex, target, %coreattrs, %i18n, %events

Events: onfocus, onblur

11

<b>

Bold text style

%coreattrs, %i18n, %events

10

<base>

Base URL

href, target

10

<basefont> (deprecated)

Basefont

color, face, id, size (required)

10

<bdo>

Bidirectional override

%coreattrs, %i18n

7

<bgsound> (IE only)

Background sound

src (required), loop

24

<big>

Big text

%coreattrs, %i18n, %events

10

<blink> (NN only)

Blink

(none)

10

<blockquote>

Blockquote

%coreattrs, %i18n, %events

10

<body>

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

<br>

Forced line break

clear, %coreattrs

10

<button>

Button (form element)

accesskey, disabled, name, tabindex, type, value, %coreattrs, %i18n, %events

Events: onfocus, onblur

16

<caption>

Caption (of a table)

align, %coreattrs, %i18n, %events

Nonstandard: summary, valign

13

<center> (deprecated)

Centers contained elements

%coreattrs, %i18n, %events

10

<cite>

Citation

%coreattrs, %i18n, %events

10

<code>

Code fragment

%coreattrs, %i18n, %events

10

<col>

Column (within a table)

align, char, charoff, span, valign, width, %coreattrs, %i18n, %events

13

<colgroup>

Column group (within a table)

align, char, charoff, span, valign, width, %coreattrs, %i18n, %events

13

<comment> (IE only)

Comment

(none)

8

<dd>

Definition (part of definition list)

compact, %coreattrs, %i18n, %events

10

<del>

Deleted text

cite, datetime, %coreattrs, %i18n, %events

10

<dfn>

Defining instance

%coreattrs, %i18n, %events

10

<dir>(deprecated)

Directory list

compact, %coreattrs, %i18n, %events

10

<div>

Division

align, %coreattrs, %i18n, %events

10

<dl>

Definition list

compact, %coreattrs, %i18n, %events

10

<dt>

Definition term (part of definition list)

%coreattrs, %i18n, %events

10

<em>

Emphasized text

%coreattrs, %i18n, %events

10

<embed>

Embedded object

align, alt, border, code, codebase, frameborder, height, hidden, hspace, name, palette, pluginspage, pluginurl, src, type, units, vspace, width

12

<fieldset>

Fieldset (group of form elements)

%coreattrs, %i18n, %events

16

<font>(deprecated)

Font style

color, face, size, %coreattrs, %i18n

10

<form>

Interactive form

accept, accept-charset, action (required), enctype, method, name, target, %coreattrs, %i18n, %events

Events: onsubmit, onreset

16

<frame>

Frame

frameborder, longdesc, marginwidth, marginheight, name, noresize, scrolling, src, %coreattrs

Nonstandard: bordercolor

14

<frameset>

Frameset

cols, rows, %coreattrs

Events: onload, unload

Nonstandard: border, bordercolor, frameborder, framespacing

14

<h1>...<h6>

Headings, level 1 through 6

align, %coreattrs, %i18n, %events

10

<head>

Head of document

profile, %i18n

9

<hr>

Horizontal rule

align, noshade, size, width, %coreattrs, %i18n, %events

12

<html>

HTML document

%i18n

9

<i>

Italic

%coreattrs, %i18n, %events

10

<iframe>

Inline frame (floating frame)

align, frameborder, height, longdesc, marginheight, marginwidth, name, scrolling, src, width, %coreattrs, %i18n, %events

Nonstandard: hspace, noresize, vspace

14

<img>

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>

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

<ins>

Inserted text

cite, datetime, %coreattrs, %i18n, %events

10

<isindex>(deprecated)

Searchable index

prompt, %coreattrs, %i18n

16

<kbd>

Keyboard text

%coreattrs, %i18n, %events

10

<label>

Label (for form elements)

accesskey, for, %coreattrs, %i18n, %events

Events: onfocus, onblur

16

<layer> (NN 4.x only)

Creates a layer

above, background, below, bgcolor, clip, height, id, left, name, pagex, pagey, src, top, visibility, width, z-index

29

<legend>

Legend (for form fieldsets)

accesskey, align, %coreattrs, %i18n, %events

16

<li>

List item

start, type, value, %coreattrs, %i18n, %events

10

<link>

Link

charset, href, hreflang, rel, rev, media, target, type, %coreattrs, %i18n, %events

11

<map>

Map (client-side imagemap)

name (required), %coreattrs, %i18n, %events

11

<marquee> (IE only)

Marquee

behavior, bgcolor, direction, height, hspace, loop, scrollamount, scrolldelay, vspace,width

12

<menu> (deprecated)

Menu list

compact, %coreattrs, %i18n, %events

10

<meta>

Meta information

content (required), http-equiv, name, scheme, %i18n

9

<multicol> (NN 4.x only)

Multi-column formatted text

cols, gutter, width

13

<nobr>(nonstandard)

Prevents line breaks from occurring

(none)

10

<noembed>(nonstandard)

Alternative content when embedded media cannot be displayed.

(none)

12

<noframes>

Content that renders on browsers without frames support

%coreattrs, %i18n, %events

14

<noscript>

Alternative content for scripts

%coreattrs, %i18n, %events

28

<object>

Generic embedded object

align, archive, border, classid, codebase, codetype, data, declare, height, hspace, name, standby, tabindex, type, vspace, width, %coreattrs, %i18n, %events

12

<ol>

Ordered list (numbered)

compact, start, type, %coreattrs, %i18n, %events

10

<optgroup>

Option group (in a form)

disabled, label (required), %coreattrs, %i18n, %events

16

<option>

Option (in a form)

disabled, label, selected, value, %coreattrs, %i18n, %events

16

<p>

Paragraph

align, %coreattrs, %i18n, %events

10

<param>

Parameter (named property value)

id, name (required), value, valuetype, type

12

<pre>

Preformatted text

width, %coreattrs, %i18n, %events

10

<q>

Short inline quotation

cite, %coreattrs, %i18n, %events

10

<s> (deprecated)

Strikethrough text

%coreattrs, %i18n, %events

10

<samp>

Sample program output

%coreattrs, %i18n, %events

10

<script>

Script statement

charset, defer, event, for, language, src, type (required)

12

<select>

Selection menu (in a form)

disabled, multiple, name, size, tabindex, %coreattrs, %i18n, %events

Events: onfocus, onblur, onchange

16

<small>

Small text

%coreattrs, %i18n, %events

10

<spacer> (NN only)

Spacer

align, height, size, type, width

12

<span>

Span (generic inline text container)

%coreattrs, %i18n, %events

9

<strike>(deprecated)

Strikethrough text

%coreattrs, %i18n, %events

10

<strong>

Strongly emphasized text

%coreattrs, %i18n, %events

10

<style>

Embedded stylesheet

type, media, title, %i18n

17

<sub>

Subscript

%coreattrs, %i18n, %events

10

<sup>

Superscript

%coreattrs, %i18n, %events

10

<table>

Table

align, bgcolor, border, cellpadding, cellspacing, frame, rules, summary, width, %coreattrs, %i18n, %events

Nonstandard:background, height, hspace, vspace

IE only: bordercolor, bordercolorlight, bordercolordark

13

<tbody>

Table body

align, char, charoff, valign, vspace

13

<td>

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

<textarea>

Multiline text area (in a form)

accesskey, cols (required), disabled, name, readonly, rows (required), tabindex, wrap, %coreattrs, %i18n, %events

Events: onfocus, onblur, onchange

16

<tfoot>

Table foot

align, char, charoff, valign, %coreattrs, %i18n, %events

13

<th>

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

<thead>

Table head

align, char, charoff, valign, %coreattrs, %i18n, %events

13

<title>

Document title

%i18n

9

<tr>

Table row

align, char, charoff, bgcolor, valign, %coreattrs, %i18n, %events

IE only: bordercolor, bordercolorlight, bordercolordark

13

<tt>

Teletype (monospaced) text

%coreattrs, %i18n, %events

10

<u> (deprecated)

Underlined text

%coreattrs, %i18n, %events

10

<ul>

Unordered (bulleted) list

compact, %coreattrs, %i18n, %events

10

<var>

Variable

%coreattrs, %i18n, %events

10

<wbr> (nonstandard)

Word break (within a <nobr> element)

(none)

10



Library Navigation Links

Copyright © 2002 O'Reilly & Associates. All rights reserved.