home | O'Reilly's CD bookshelfs | FreeBSD | Linux | Cisco | Cisco Exam  


Book HomeWebmaster in a Nutshell, 3rd EditionSearch this book

3.2. HTML Tag and Attribute Descriptions

<abbr>

<abbr> ... </abbr>

The enclosed text is an abbreviation.

<acronym>

<acronym> ... </acronym>

The enclosed text is an acronym.

<address>

<address> ... </address>

The enclosed text is an address.

<b>

<b> ... </b>

Format the enclosed text using a bold typeface.

<big>

<big> ... </big>

Format the enclosed text using a bigger typeface.

<cite>

<cite> ... </cite>

The enclosed text is a citation.

<code>

<code> ... </code>

The enclosed text is a code sample.

<comment>

<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> ... </dd>

Define the definition portion of an element in a definition list.

<dfn>

<dfn> ... </dfn>

Format the enclosed text as a definition.

<dt>

<dt> ... </dt>

Define the definition term portion of an element in a definition list.

<em>

<em> ... </em>

Format the enclosed text with additional emphasis.

<fieldset>

<fieldset> ... </fieldset>

Create a group of elements in a form.

<hr>

<hr>

Break the current text flow and insert a horizontal rule.

Attributes

align=type
Specify the rule alignment as either left, center (default), or right.

class=name
Specify a style class controlling the appearance of the rule.

color=color
Define the color of the rule.

id=name
Define a name for this tag that is unique to this document.

noshade
Do not use 3D shading to render the rule.

onclick=applet
Specify an applet to be executed when the mouse button is clicked on this tag.

ondblclick=applet
Specify an applet to be executed when the mouse button is double-clicked on this tag.

onkeydown=applet
Specify an applet to be executed when a key is pressed down while this tag has input focus.

onkeypress=applet
Specify an applet to be executed when a key is pressed and released while this tag has input focus.

onkeyup=applet
Specify an applet to be executed when a key is released while this tag has input focus.

onmousedown=applet
Specify an applet to be executed when a mouse button is pressed down on this tag.

onmousemove=applet
Specify an applet to be executed when the mouse is moved over this tag.

onmouseout=applet
Specify an applet to be executed when the mouse moves out of this tag's display area.

onmouseover=applet
Specify an applet to be executed when the mouse moves into this tag's display area.

onmouseup=applet
Specify an applet to be executed when a mouse button is released while over this tag.

size=pixels
Set the thickness of the rule to an integer number of pixels.

style=style
Specify an inline style for this tag.

title=string
Specify a title for this tag.

width=value
Set the width of the rule to either an integer number of pixels or a percentage of the page width.

<i>

<i> ... </i>

Format the enclosed text in an italic typeface.

<img>

<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.

<kbd>

<kbd> ... </kbd>

The enclosed text is keyboard-like input.

<listing>

<listing> ... </listing>

Same as <pre width=n> ... </pre>; deprecated: don't use.

<nobr>

<nobr> ... </nobr>

No breaks allowed in the enclosed text.

<noembed>

<noembed> ... </noembed>

Define content to be presented by browsers that do not support the <embed> tag.

<object>

<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.

<plaintext>

<plaintext>

Render the remainder of the document as preformatted plain text.

<s>

<s> ... </s>

The enclosed text is struck through with a horizontal line.

<samp>

<samp> ... </samp>

The enclosed text is a sample.

<server>

<server> ... </server>

Define a LiveWire script.

<small>

<small> ... </small>

Format the enclosed text using a smaller typeface.

<strike>

<strike> ... </strike>

The enclosed text is struck through with a horizontal line.

<strong>

<strong> ... </strong>

Strongly emphasize the enclosed text.

<sub>

<sub> ... </sub>

Format the enclosed text as a subscript.

<sup>

<sup> ... </sup>

Format the enclosed text as a superscript.

<table>

<table> ... </table>

Define a table.

Attributes

align=position
Align the table either left or right with the surrounding text flow.

background=url
Specify an image to be tiled in the background of the table.

bgcolor=color
Define the background color for the entire table.

border=n
Create a border n pixels wide.

bordercolor=color
Define the border color for the entire table.

bordercolordark=color
Define the dark border-highlighting color for the entire table.

bordercolorlight=color
Define the light border-highlighting color for the entire table.

cellpadding=n
Place n pixels of padding around each cell's contents.

cellspacing=n
Place n pixels of spacing between cells.

cols=n
Specify the number of columns in this table.

frame=[void|above|below|hsides|lhs|rhs|vsides|box|border]
Specify which sides of a table's outer border will be drawn. void removes outer borders; box and border displays all. hsides draws horizontal sides; vsides draws vertical sides. lhs draws left side; rhs right side.

height=n
Define the height of the table in pixels.

hspace=n
Specify the horizontal space, in pixels, added at the left and right of the table.

nowrap
Suppress text wrapping in table cells.

rules=[all|cols|groups|none|rows]
Turn off (none) or turn on rules between table cells by cols, rows, groups, or all.

summary=string
Provide a description to summarize this table.

vspace=n
Specify the vertical space, in pixels, added at the top and bottom of the table.

width=n
Set the width of the table to n pixels or a percentage of the window width.

See Chapter 5 for more information on tables.

<tt>

<tt> ... </tt>

Format the enclosed text in typewriter-style (monospaced) font.

<var>

<var> ... </var>

The enclosed text is a variable's name.

<wbr>

<wbr>

Indicate a potential word-break point within a <nobr> section.



Library Navigation Links

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