3.2. HTML Tag and Attribute Descriptions
<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.
Attributes
- 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 the tag.
- code=class
-
Specify the class name of the
code to be executed (required).
- codebase=url
-
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
the left and right of the <applet> region.
- id=name
-
Define a name for this applet that is
unique to this document.
- mayscript
-
If present, allows the applet to access
JavaScript within the page.
- name=string
-
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,
above and below the <applet> region.
- width=n
-
Specify the width, in pixels, of the
<applet> region.
<b> ... </b>
Format the enclosed text using a bold typeface.
<big> ... </big>
Format the enclosed text using a bigger typeface.
<blockquote> ... </blockquote>
The enclosed text is a block quotation.
Attributes
- cite=url
-
Specify the source URL of the quoted
material.
<cite> ... </cite>
The enclosed text is a citation.
<code> ... </code>
The enclosed text is a code sample.
<comment> ... </comment>
Place a comment in the document. Comments will be visible in all
other browsers. Comments can be placed within
<!-- comment text
—> for all browsers.
<dd> ... </dd>
Define the definition portion of an element in a definition list.
<dfn> ... </dfn>
Format the enclosed text as a definition.
<dl> ... </dl>
Create a definition list containing <dt> and
<dd> tags.
Attributes
- 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>
Embed an application into the document.
Attributes
- 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 of the area the
embedded object will occupy.
- 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; background uses the
background palette. Internet Explorer provides 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
-
Supplies 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.
<hn> ... </hn>
The enclosed text is a level n header; for
level n from 1 to 6.
Attributes
- align=type
-
Specify
the heading alignment as either left (default),
center, or right.
<i> ... </i>
Format the enclosed text in an italic typeface.
<img>
Insert an image into the current text flow.
Attributes
- align=type
-
Align the image to either the
top, middle,
bottom (default), left, or
right of the text in the line. For Netscape
Navigator, additionally align to the texttop,
absmiddle, absbottom, or
baseline of the text.
- alt=text
-
Provide descriptive text for
nonimage-capable browsers, tool tips, telephone browsers, and search
engines.
- border=n
-
Set the pixel thickness of the border
around images contained within hyperlinks.
- controls
-
Add playback controls for embedded video
clips.
- dynsrc=url
-
Specify the URL of a video clip to be
displayed.
- height=n
-
Specify the height of the image in pixels.
- hspace=n
-
Specify the space, in pixels, to be added to the left and right of
the image.
- ismap
-
Indicate that the image is mouse-selectable when used within an
<a> tag.
- longdesc=url
-
Provide the URL of a document describing
the image.
- loop=value
-
Set the number of times to play the video;
value may be an integer or the value
infinite.
- lowsrc=url
-
Specify a low-resolution image to be loaded by the browser first,
followed by the image specified by the <src>
attribute.
- src=url
-
Specify the source URL of the image to be displayed
(required).
- name=name
-
Provide a name for the image for use by
JavaScript.
- onabort=applet
-
Provide an applet to be run if the
loading of the image is aborted.
- onerror=applet
-
Provide an applet to be run if the
loading of the image is unsuccessful.
- onload=applet
-
Provide an applet to be run if the loading
of the image is successful.
- start=start
-
Specify when to play the video clip, either
fileopen or
mouseover.
- usemap=url
-
Specify the map of coordinates and links that define the hypertext
links within this image.
- vspace=n
-
Specify the vertical space, in pixels, added at the top and bottom of
the image.
- width=n
-
Specify the width of the image in pixels.
<input type=hidden>
Create a hidden element within a <form>.
Attributes
- name=string
-
Specify the name of the parameter that is passed to the
form-processing application for this input element (required).
- value=string
-
Specify the value of this element that is passed to the
form-processing application.
See Chapter 6 for more information on using forms.
<kbd> ... </kbd>
The enclosed text is keyboard-like input.
<layer> ... </layer>
Define a layer.
Attributes
- above=name
-
Place this layer above the named layer.
- background=url
-
Specify a background image for the layer.
- below=name
-
Place this layer below the named layer.
- bgcolor=color
-
Specify the background color for the
layer.
- class=name
-
Specify a style class controlling the
appearance of this tag.
- clip=edge
-
Define the
layer's clipping region, in pixels. If
left and top are 0, they may be
omitted.
- left=n
-
Define, in pixels, the position of the
layer's left edge from the containing line of text.
- name=name
-
Provide a name for the layer.
- src=url
-
Supply the content of the layer from
another document.
- style=style
-
Specify an inline style for this tag.
- top=n
-
Define, in pixels, the position of the
layer's top edge from the containing line of text.
- visibility=value
-
Determine whether to
show the layer, hide the layer,
or inherit the visibility attribute from a
containing layer.
- width=n
-
Define the width, in pixels, of the
layer.
- z-index=n
-
Specify the layer's
position in the stacking order.
<listing> ... </listing>
Same as <pre
width=n> ...
</pre>; deprecated: don't
use.
<marquee> ... </marquee>
Create a scrolling-text marquee.
Attributes
- align=position
-
Align the marquee to the top,
middle, or bottom of the
surrounding text.
- behavior=style
-
Define marquee style to be scroll,
slide, or
alternate.
- bgcolor=color
-
Set the background color of the marquee.
- class=name
-
Specify a style class controlling the appearance of this tag.
- direction=dir
-
Define the direction, left or
right, the text is to
scroll.
- height=value
-
Define the height, in pixels, of the marquee
area.
- hspace=value
-
Define the space, in pixels, to be inserted to the left and right of
the marquee.
- loop=value
-
Set the number of times to animate the marquee;
value is an integer or
infinite.
- scrollamount=value
-
Set the number of pixels to move the text for scroll
movements.
- scrolldelay=value
-
Specify the delay, in milliseconds, between successive movements of
the marquee text.
- style=style
-
Specify an inline style for this tag.
- vspace=value
-
Define the space, in pixels, to be inserted above and below the
marquee.
- width=value
-
Define the width, in pixels, of the marquee
area.
<nobr> ... </nobr>
No breaks allowed in the enclosed text.
<noembed> ... </noembed>
Define content to be presented by browsers that do not support the
<embed> tag.
<noframes> ... </noframes>
Define content to be presented by browsers that do not support frames. See Chapter 4 for more information on using frames.
<object> ... </object>
Insert an object into the document. This tag is used to specify
applets, OLE controls, and other media objects.
Attributes
- align=value
-
Specify how the object is aligned with other elements in the
document. Values include baseline,
center, left,
middle, right,
textbottom, textmiddle, and
texttop.
- archive=list
-
Specify a list of URLs of archives
containing resources used by this object.
- border=n
-
Set the width of the object's border if it is a
hyperlink.
- classid=url
-
Identify the class identifier of the object. The syntax of the URL
depends on the object type.
- codebase=url
-
Identify the URL of the object's codebase. The
syntax of the URL depends on the object.
- codetype=codetype
-
Specify the media type of the code.
- data=url
-
Specify the URL of the data used for the object. The syntax of the
URL depends on the object.
- declare
-
Declare an object without instantiating
it.
- height=n
-
Specify the height of the object in pixels.
- hspace=n
-
Specify the amount of space in pixels between the sides of the object
and the surrounding elements.
- name=url
-
Specify the name of the object.
- notab
-
Do not make this object part of the
tabbing order.
- shapes
-
Indicate shaped hyperlinks in object.
- standby=message
-
Specify message to display during object
loading.
- tabindex=n
-
Specify this object's
position in the tabbing order.
- type=type
-
Specify the media type for data.
- usemap=url
-
Specify image map to use with object.
- vspace=n
-
Specify the amount of space, in pixels, above and below
object.
- width=n
-
Specify object width.
<optgroup> ... </optgroup>
Define a group of options within a <select>
element.
Attributes
- disabled
-
Disable this group, making it inactive.
- label=string
-
Provide a label for this group.
<plaintext>
Render the remainder of the document as preformatted plain text.
<pre> ... </pre>
Render the enclosed text in its original, preformatted style,
honoring line breaks and spacing.
Attributes
- width=n
-
Size the text, if possible, so that
n characters fit across the display
window.
<q> ... </q>
Designate enclosed text as an inline quotation.
Attributes
- cite=url
-
Specify the URL of the source of the
quoted material.
<s> ... </s>
The enclosed text is struck through with a horizontal line.
<samp> ... </samp>
The enclosed text is a sample.
<server> ... </server>
Define a LiveWire script.
<small> ... </small>
Format the enclosed text using a smaller typeface.
<span> ... </span>
Specify style-sheet formatting to text between tags.
Attributes
- style=elements
-
Specify cascading style-sheet elements for text in the
span.
<strike> ... </strike>
The enclosed text is struck through with a horizontal line.
<strong> ... </strong>
Strongly emphasize the enclosed text.
<sub> ... </sub>
Format the enclosed text as a subscript.
<sup> ... </sup>
Format the enclosed text as a superscript.
<td> ... </td>
Define a table data cell.
Attributes
- abbr=string
-
Specify an abbreviation for the
cell's contents.
- align=type
-
Align the cell contents to the left,
center, or
right.
- axis=string
-
Provide a name for a related group of
cells.
- background=url
-
Specify an image to be tiled in the background of the
cell.
- bgcolor=color
-
Define the background color for the cell.
- bordercolor=color
-
Define the border color for the cell.
- bordercolordark=color
-
Define the dark border-highlighting color for the
cell.
- bordercolorlight=color
-
Define the light border-highlighting color for the
cell.
- char=char
-
Specify the cell alignment character.
- charoff=value
-
Specify the offset of the alignment
position within the cell.
- colspan=n
-
Have this cell straddle n adjacent
columns.
- headers=list
-
Provide a list of header cell names
associated with this cell.
- height=n
-
Define the height, in pixels, for this
cell.
- nowrap
-
Do not automatically wrap and fill text in this
cell.
- rowspan=n
-
Have this cell straddle n adjacent
rows.
- scope=scope
-
Define the scope of this header cell,
either row, col,
rowgroup, or colgroup.
- valign=type
-
Vertically align this cell's contents to the
top, middle,
bottom, or baseline of the
cell.
- width=n
-
Set the width of this cell to n pixels or
a percentage of the table width.
See Chapter 5 for more information on tables.
<th> ... </th>
Define a table header cell.
Attributes
- abbr=string
-
Specify an abbreviation for the
cell's contents.
- align=type
-
Align the cell contents to the left,
center, or
right.
- axis=string
-
Provide a name for a related group of
cells.
- background=url
-
Specify an image to be tiled in the background of the
cell.
- bgcolor=color
-
Define the background color for the cell.
- bordercolor=color
-
Define the border color for the cell.
- bordercolordark=color
-
Define the dark border-highlighting color for the
cell.
- bordercolorlight=color
-
Define the light border-highlighting color for the
cell.
- char=char
-
Specify the cell alignment character.
- charoff=value
-
Specify the offset of the alignment
position within the cell.
- colspan=n
-
Have this cell straddle n adjacent
columns.
- headers=list
-
Provide a list of header cell names
associated with this cell.
- height=n
-
Define the height, in pixels, for this
cell.
- nowrap
-
Do not automatically wrap and fill text in this
cell.
- rowspan=n
-
Have this cell straddle n adjacent
rows.
- scope=scope
-
Define the scope of this header cell:
row, col,
rowgroup, or colgroup.
- valign=type
-
Vertically align this cell's contents to the
top, middle,
bottom, or baseline of the
cell.
- width=n
-
Set the width of this cell to n pixels or
a percentage of the table width.
See Chapter 5 for more information on tables.
<tt> ... </tt>
Format the enclosed text in typewriter-style (monospaced) font.
<var> ... </var>
The enclosed text is a variable's name.
<wbr>
Indicate a potential word-break point within a
<nobr> section.
 |  |  | 3. HTML Reference |  | 4. Frames |
Copyright © 2003 O'Reilly & Associates. All rights reserved.
|