As with the other sections of this book, we use the Netscape and
Internet Explorer icons to the far right of each item to indicate
tags and attributes that are extensions to the HTML 4.01 and XHTML
1.0 standards. If no icon is shown, the tag or attribute is part of
the HTML 4.01 and XHTML 1.0 standards.
We include the possible attributes (some required) indented below
their respective tags. In the description, we give possible attribute
values as either a range of integer numbers or a definitive list of
options, where possible.
<a> ... </a>
Create a hyperlink anchor (href attribute) or
fragment identifier (name attribute)
accesskey=char
Define the hot-key character for this anchor
charset=encoding
Specify the character set used to encode the target
coords=list
Specify a list of shape-dependent coordinates
href=url
Specify the URL of a hyperlink target
hreflang=language
Specify the language encoding for the target
name=name
Specify the name of a fragment identifier
rel=relationship
Indicate the relationship of this document to the target
rev=relationship
Indicate the reverse relationship of the target to this document
shape=shape
Define the region's shape to be
circ, circle,
poly, polygon,
rect, or rectangle
tabindex=value
Define the position of this anchor in the document's
tabbing order
target=name
Define the name of the frame or window to receive the referenced
document
type=type
Specify the MIME type of the target
<abbr> ... </abbr>
The enclosed text is an abbreviation
<acronym> ...
</acronym>
The enclosed text is an acronym
<address> ...
</address>
The enclosed text is an address
<applet> ...
</applet>
Define an executable applet within a text flow
*
align=position
Align the <applet> region to either the
top, middle,
bottom (default), left,
right, absmiddle,
baseline, or absbottom of the
text in the line
alt=string
Specify alternative text to replace the
<applet> region within browsers that support
the <applet> tag but cannot execute the
application
archive=url
Specify a class archive to be downloaded to the browser and then
searched for code class
class=name
Specify a style class controlling the appearance of this tag
code=class
Specify the class name of the code to be executed (required)
codebase=url
Specify the URL from which the code is retrieved
height=n
Specify the height, in pixels, of the
<applet> region
hspace=n
Specify additional space, in pixels, to allow to the left and right
of the <applet> region
id=name
Define a name for this applet that is unique to this document
mayscript
Allow the applet to access JavaScript within the page
name=name
Specify the name of this particular instance of the applet
object=data
Specify a representation of the object's execution
state
style=style
Specify an inline style for this tag
title=string
Provide a title for the applet
vspace=n
Specify additional space, in pixels, to allow above and below the
<applet> region
width=n
Specify the width, in pixels, of the
<applet> region
<area>
Define a mouse-sensitive area in a client-side image map
accesskey=char
Define the hot-key character for this area
alt=string
Provide alternative text to be displayed by nongraphical browsers
coords=list
Specify a comma-separated list of shape-dependent coordinates that
defines the edge of this area
href=url
Specify the URL of a hyperlink target associated with this area
nohref
Indicate that no document is associated with this area; clicking in
the area has no effect
notab
Do not include this area in the tabbing order
onblur=applet
Specify an applet to be run when the mouse leaves the area
onfocus=applet
Specify an applet to be run when the mouse enters the area
shape=shape
Define the region's shape to be
circ, circle,
poly, polygon,
rect, or rectangle
tabindex=value
Define the position of this area in the document's
tabbing order
taborder=n
Specify this area's position in the tabbing order
target=name
Specify the frame or window to receive the document linked by this
area
<b> ... </b>
Format the enclosed text using a bold typeface
<base>
Specify the base URL for all relative URLs in this document
*
href=url
Specify the base URL (required)
target=name
Define the default target of all <a> links
in the document
<basefont>
Specify the font size for subsequent text (deprecated; do not use)
*
color=color
Specify the base font's color
face=name
Specify the local font to be used for the base font
id=name
Define a name for this tag that is unique to this document
name=name
Specify the local font to be used for the base font
size=value
Set the base font size, from 1 to 7 (required; default is 3)
<bdo> ... </bdo>
Bidirectional override, changing the rendering direction of the
enclosed text
*
class=name
Specify a style class controlling the appearance of this tag
dir=dir
Specify the rendering direction for text ? either left to right
(ltr) or right to left (rtl)
id=name
Define a name for this tag that is unique to this document
lang=language
Specify the language used for this tag's contents
using a standard two-character ISO language name
style=style
Specify an inline style for this tag
title=string
Specify a title for this tag
<bgsound>
Define background audio for the document
*
loop=value
Set the number of times to play the audio; value
may be an integer or the value infinite
src=url
Provide the URL of the audio file to be played
<big> ... </big>
Format the enclosed text using a bigger typeface
<blink> ... </blink>
Cause the enclosed content to blink
<blockquote> ...
</blockquote>
The enclosed text is a block quotation
cite=url
Specify the URL of the source of the quoted material
<body> ... </body>
Delimit the beginning and end of the document body
alink=color
Set the color of active hypertext links in the document
background=url
Specify the URL of an image to be tiled in the document background
bgcolor=color
Set the background color of the document
bgproperties=value
With value set to fixed,
prevent the background image from scrolling with the document content
leftmargin=value
Set the size, in pixels, of the document's left
margin
link=color
Set the color of unvisited hypertext links in the document
onblur=applet
Specify an applet to be run when the mouse leaves the document window
onfocus=applet
Specify an applet to be run when the mouse enters the document window
onload=applet
Specify an applet to be run when the document is loaded
onunload=applet
Specify an applet to be run when the document is unloaded
text=color
Set the color of regular text in the document
topmargin=value
Set the size, in pixels, of the document's top margin
vlink=color
Set the color of visited links in the document
<br>
Break the current text flow, resuming at the beginning of the next
line
*
class=name
Specify a style class controlling the appearance of this tag
clear=margin
Break the flow and move downward until the desired
margin, either left,
right, none, or
all, is clear
id=name
Define a name for this tag that is unique to this document
style=style
Specify an inline style for this tag
title=string
Specify a title for this tag
<button>
Create a push-button element within a <form>
accesskey=char
Define the hot-key character for this button
disabled
Disable the button, preventing the user from clicking it
name=name
Specify the name of the parameter to be passed to the
forms-processing application if the input element is selected
(required)
onblur=applet
Specify an applet to be run when the mouse moves out of the button
onfocus=applet
Specify an applet to be run when the mouse moves into the button
tabindex=n
Specify this element's position in the tabbing order
type=type
Specify the button type ? either button,
submit, or reset
value=string
Specify the value of the parameter sent to the forms-processing
application if this form element is selected (required)
<caption> ...
</caption>
Define a caption for a table
align=position
For Netscape, set the vertical position of the caption to either
top or bottom; for Internet
Explorer, set the horizontal alignment of the caption to either
left, center, or
right
valign=position
Set the vertical position of the caption to either
top or bottom
<center> ...
</center>
Center the enclosed text
<cite> ... </cite>
The enclosed text is a citation
<code> ... </code>
The enclosed text is a code sample
<col>
Define a column within a <colgroup>
align=position
Set the column alignment to left,
center, or right
char=character
Specify the alignment character for text in these cells
charoff=value
Set the offset within the cell at which the alignment character is
placed
span=n
Define the number of columns affected by this
<col> tag
valign=position
Set the vertical alignment of text within the column to either
top, middle, or
bottom
width=n
Set the width, in pixels or as a percentage, of the column
<colgroup>
Define a column group within a table
align=position
Set the horizontal alignment of text within the columns to either
left, center, or
right
char=character
Specify the alignment character for text in these cells
charoff=value
Set the offset within the cell at which the alignment character is
placed
span=n
Define the number of columns in the group
valign=position
Set the vertical alignment of text within the columns to either
top, middle, or
bottom
width=n
Set the width, in pixels or as a percentage, of each column in the
group
<comment> ...
</comment>
Place a comment in the document (comments are visible in all other
browsers)
*
<dd> ... </dd>
Define the definition portion of an element in a definition list
<del> ... </del>
Delineate a deleted section of a document
cite=url
Cite a document justifying the deletion
datetime=date
Specify the date and time of the deletion
<dfn> ... </dfn>
Format the enclosed text as a definition
<dir> ... </dir>
Create a directory list containing <li> tags
type=bullet
Set the bullet style for this list to either
circle, disc (default), or
square
<div> ... </div>
Create a division within a document
align=type
Align the text within the division to left,
center, or right
nowrap
Suppress word wrapping within this division
<dl> ... </dl>
Create a definition list containing <dt> and
<dd> tags
compact
Make the list more compact if possible
<dt> ... </dt>
Define the definition term portion of an element in a definition list
<em> ... </em>
Format the enclosed text with additional emphasis
<embed>
Embed an application in a document
*
align=position
Align the applet area to either the top or
bottom of the adjacent text, or to the
left or right margin of the
page, with subsequent text flowing around the applet
border=n
Specify the size, in pixels, of the border around the applet
height=n
Specify the height, in pixels, of the applet
hidden
If present, hide the applet on the page
hspace=n
Define, in pixels, additional space to be placed to the left and
right of the applet
name=name
Provide a name for the applet
palette=value
In Netscape, a value of foreground causes the
applet to use the foreground palette (in Windows only), while
background uses the background palette; in
Internet Explorer, provide the foreground and background colors for
the applet, specified as two color values separated by a vertical bar
(|)
pluginspage=url
Provide the URL of the page containing instructions for installing
the plug-in associated with the applet
src=url
Supply the URL of the data to be fed to the applet
type=type
Specify the MIME type of the plug-in to be used
units=type
Set the units for the height and
width attributes to either
pixels (the default) or en
(half the text point size)
vspace=n
Define, in pixels, additional space to be placed above and below the
applet
width=n
Specify the width, in pixels, of the applet
<fieldset> ...
</fieldset>
Create a group of elements in a form
<font> ... </font>
Set the size or color of the enclosed text (deprecated; do not use)
*
class=name
Specify a style class controlling the appearance of this tag
color=color
Set the color of the enclosed text to the desired color
dir=dir
Specify the rendering direction for text ? either left to right
(ltr) or right to left (rtl)
face=list
Set the typeface of the enclosed text to the first available font in
the comma-separated list of font names
id=name
Define a name for this tag that is unique to this document
lang=language
Specify the language used for this tag's contents
using a standard two-character ISO language name
size=value
Set the size to an absolute size, from 1 to 7, or relative to the
<basefont> size, using +n
or -n (required)
style=style
Specify an inline style for this tag
title=string
Specify a title for this tag
<form> ... </form>
Delimit a form
accept-charset=list
Specify a list of character sets accepted by the server processing
this form
action=url
Specify the URL of the application that processes the form (required)
enctype=encoding
Specify how the form element values are encoded
method=style
Specify the parameter-passing style ? either
get or post (required)
name=name
Supply a name for this form for use by JavaScript
onreset=applet
Specify an applet to be run when the form is reset
onsubmit=applet
Specify an applet to be run when the form is submitted
target=name
Specify the name of the frame or window to receive the results of the
form after submission
<frame> ... </frame>
Define a frame within a frameset
*
bordercolor=color
Set the color of the frame's border
class=name
Specify a style class controlling the appearance of this tag
frameborder=n
If value is yes (Netscape
only) or 1 (Netscape and Internet Explorer),
enable frame borders; if value is
no (Netscape only) or 0
(Netscape and Internet Explorer), disable frame borders
id=name
Define a name for this tag that is unique to this document
longdesc=url
Provide the URL of a document describing the contents of the frame
marginheight=n
Place n pixels of space above and below the
frame contents
marginwidth=n
Place n pixels of space to the left and right of
the frame contents
name=name
Define the name of the frame
noresize
Disable user resizing of the frame
scrolling=type
Always add scrollbars (yes), never add scrollbars
(no), or, for Netscape only, add scrollbars when
needed (auto)
src=url
Define the URL of the source document for this frame
style=style
Specify an inline style for this tag
title=string
Specify a title for this tag
<frameset> ...
</frameset>
Define a collection of frames or other framesets
*
border=n
Set the thickness of the frame borders in this frameset
bordercolor=color
Define the color of the borders in this frameset
cols=list
Specify the number and width of frames within a frameset
frameborder=value
If value is yes (Netscape
only) or 1 (Netscape and Internet Explorer),
enable frame borders; if value is
no (Netscape only) or 0
(Netscape and Internet Explorer), disable frame borders
framespacing=n
Define the thickness of the frame borders in this frameset
onblur=applet
Define an applet to be run when the mouse leaves this frameset
onfocus=applet
Define an applet to be run when the mouse enters this frameset
onload=applet
Define an applet to be run when this frameset is loaded