| HTML Reference |
| Tag |
Description |
| !-- |
Comments. Any text
between tags will not display in the browser. |
| !DOCTYPE |
Describes the HTML
version used in the current document. |
| A |
Stands for anchor.
Attributes create hyperlinks and named references. |
| ADDRESS |
Specifies a mailing
address. |
| APPLET |
Embeds a Java applet.
See OBJECT. |
| AREA |
Specifies the shape of
a "hot spot" in a client-side image map. |
| B |
Changes text to bold.
See STRONG. |
| BASE |
Specifies a document's
URL. |
| BASEFONT |
Sets the base font
value. |
| BGSOUND |
Adds background sounds
that play on initial load. |
| BIG |
Enlarges the font
size. |
| BLOCKQUOTE |
Sets apart a quotation
in text. |
| BODY |
Specifies the
beginning and the end of the document body. See HEAD. |
| BR |
Inserts a line break. |
| CAPTION |
Specifies a caption
for a table. Valid only within the TABLE element. |
| CENTER |
Centers text and
images. |
| CITE |
Indicates a citation.
Used to present a book, paper, or other published source material. |
| CODE |
Presents a code
sample. |
| COL |
Sets the properties of
a column. |
| COLGROUP |
Sets the properties of
one or more columns as a group. |
| COMMENT |
Indicates a comment.
Text in a comment element does not display in a browser. |
| DD |
Specifies definition
data. Used to format the text for a definition. See DL, DT. |
| DFN |
Specifies a
definition. Formats a defined term. |
| DIR |
Denotes a directory
list. |
| DIV |
Sets a document
division. Groups related elements together within a document. |
| DL |
Denotes a definition
list. Used for a list of defined terms. See DT, DD. |
| DT |
Specifies a definition
term. Used to format the defined term. See DL, DD. |
| EM |
Emphasizes text,
usually by rendering text in italic. |
| EMBED |
Indicates an embedded
object. See OBJECT. |
| FONT |
Formats the font
style, size, and color. |
| FORM |
Denotes a form with
which users enter data. See INPUT for a list of form elements. |
| FRAME |
Defines independent
windows, or frames, within a page. See FRAMESET. |
| FRAMESET |
Defines layout for
frames within a page. See FRAME.
|
| Hn |
Renders text in
heading style, usually with a larger font than the body text. The n is a value from
1 to 6. |
| HEAD |
Marks the HTML
document heading. |
| HR |
Draws a horizontal
rule. Used to separate sections. |
| HTML |
Denotes the file is an
HTML document. |
| I |
Renders text in
italic. |
| IMG |
Inserts a graphic
file. |
| INPUT |
Specifies a form
control such as a check box or radio button. See FORM. |
| ISINDEX |
Indicates the presence
of an index. |
| KBD |
Indicates text to be
entered at a keyboard. Appears in fixed-width and bold type. |
| LI |
Denotes an item in a
list. Adds special character or number depending on use. See UL, OL. |
| LINK |
Establishes the
relationship between documents. Appears only in the HEAD element. |
| LISTING |
Renders text in
fixed-width type. |
| MAP |
Specifies a collection
of hot spots for a client-side image map. |
| MARQUEE |
Displays text in a
scrolling marquee. |
| MENU |
Denotes a list of
items. |
| META |
Provides information
about the document. Used for client pull, also by some search engines for indexing.
Describes the character set to be used. |
| NOBR |
Turns off line
breaking. |
| NOFRAMES |
Indicates content
viewable only by browsers that do not support frames. |
| OBJECT |
Inserts an OLE
Control. |
| OL |
Specifies an ordered
list. Each item has a number or letter reference. See UL, LI. |
| OPTION |
Denotes one choice in
a list box. |
| P |
Inserts a paragraph
break and denotes a new paragraph. |
| PARAM |
Sets object
properties. |
| PLAINTEXT |
Renders text in
fixed-width type without processing elements. |
| PRE |
Displays text exactly
as typedwith all line breaks and spacing. |
| S |
Renders text in
strikethrough type. |
| SAMP |
Specifies sample text.
See CODE. |
| SCRIPT |
Specifies the
inclusion of a script. |
| SELECT |
Denotes a list box or
drop-down list. |
| SMALL |
Decreases the font
size. |
| SPAN |
Applies style
information to the enclosed text. |
| STRIKE |
Renders text in
strikethrough type. See S.
|
| STRONG |
Emphasizes text,
usually with bold. See B.
|
| STYLE |
Allows authors to
include rendering information using a specified style notation. |
| SUB |
Renders text in
subscript. |
| SUP |
Renders text in
superscript. |
| TABLE |
Creates a table. See TH, TR, and TD to learn how to define rows and
columns. |
| TBODY |
Defines the table
body. |
| TD |
Creates a cell in a
table. |
| TEXTAREA |
Creates a box in which
a user can enter and edit text. |
| TFOOT |
Defines the table
footer. |
| TH |
Creates a row or
column heading in a table. |
| THEAD |
Defines the table
header. |
| TITLE |
Specifies a document
title. Appears in the browser title bar. |
| TR |
Creates a row in a
table. |
| TT |
Denotes teletype.
Displays text in fixed-width type. |
| U |
Renders text
underlined. |
| UL |
Formats lines of text
as a bulleted list. See LI.
|
| VAR |
Indicates placeholder
text for a variable. Displays text in a small, fixed-width font. |
| WBR |
Inserts a soft line
break in a block of NOBR
text. |
| XMP |
Indicates example
text. Displays text in fixed-width font. |
<!-- .. -->
Specifies that enclosed text is an author's comment. Text may be multi-line. Any text
between the tags will not appear in an HTML browser. You can include lines of text between
the start-tag and end-tag.
Example
<!--This line of text, enclosed in an HTML page, will not display.
This second line of text will not display either.-->
<!DOCTYPE>
Specifies the version of HTML used in the document. !DOCTYPE is the first element in
any HTML document. !DOCTYPE is a required element for any HTML 3.2-compliant document.
Example
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<A
CLASS=type
HREF=reference
ID=value
NAME=name
onClick=function
onMouseOver=function
REL=SAME|NEXT|PARENT|PREVIOUS
REV=value
STYLE=style
TARGET=window
TITLE=title>
</A>
Stands for anchor. The end-tag is required.
- CLASS=type
- Indicates the class to which the element belongs.
- HREF=reference
- Specifies either a destination address or a destination file. A destination address must
be in URL format. A destination file must name a file and be in the format of the given
file system. If no path or domain name is specified, the file is searched for in the same
location as the current document.
- ID=value
- Specifies a unique value for the element over the document.
- NAME=name
- Specifies a named reference within an HTML document.
- onClick=function
- Activates a script when the onClick event occurs.
- onMouseOver=function
- Activates a script when the onMouseOver event occurs.
- REL=SAME|NEXT|PARENT|PREVIOUS
- Defines the relationship of a link. The default is SAME.
| SAME |
The author of the
linked document is the same as the current document. |
| NEXT |
The link is the next
page in a sequence. |
| PARENT |
The current page is
the parent of a destination document. |
| PREVIOUS |
The link is to the
previous document. |
- REV=value
- Specifies the reverse link.
- STYLE=style
- Specifies style information.
- TARGET=window
- Specifies to load the link into the targeted window. This attribute can be used with a
frameset where a frame has been named in the FRAME element. The window can be
one of these values:
| window |
Specifies to load the
link into the targeted window. The window must begin with an alphanumeric character
to be valid, except for the following four target windows: |
| blank |
Load the link into a
new blank window. This window is not named. |
| parent |
Load the link into the
immediate parent of the document the link is in. |
| self |
Load the link into the
same window the link was clicked in. |
| top |
Load the link into the
full body of the window. |
- TITLE=title
- Specifies the title that appears when the hyperlink is selected.
The properties of elements that can follow A are applied to the data characters or
elements in the container. The anchor element is used to link text or other elements using
the HREF= attribute. The anchor element is used to specify text or graphics as a
named reference, to which hyperlinks can link, using the NAME= attribute. Anchors
cannot be nested.
Example
<a class="bgwhite" href="http://www.microsoft.com"> This is a link to Microsoft.</A>
<a class="bgwhite" href="home.htm">This is a link to a file called home.htm in the same
directory as this page.</A>
<A TARGET="viewer" HREF="sample.htm">Click here to load the link into
"viewer" window.</A>
<ADDRESS>
</ADDRESS>
Specifies the mailing address. This element typically is used at the bottom of a
document. Text is displayed in italic. The end-tag is required.
Example
<ADDRESS>This text will be in italic.</ADDRESS>
<APPLET
ALIGN=LEFT|CENTER|RIGHT|TOP|MIDDLE|BOTTOM
ALT=alternateText
CODE=appletFile
CODEBASE=codebaseURL
DOWNLOAD=n
HEIGHT=pixels
HSPACE=pixels
NAME=appletInstanceName
TITLE=text
VSPACE=pixels
WIDTH=pixels>
...
<PARAM NAME=AttributeName ...>
...
</APPLET>
Embeds a Java applet in an HTML document. The end-tag is required.
- ALIGN=LEFT|CENTER|RIGHT|TOP|MIDDLE|BOTTOM
- Describes the alignment of an object to text. The default is LEFT.
| LEFT |
The applet is aligned
to the left of surrounding text. |
| CENTER |
The applet is aligned
to the center of surrounding text. |
| RIGHT |
The applet is aligned
to the right of surrounding text. |
| TOP |
The applet is aligned
to the top of surrounding text. |
| MIDDLE |
The applet is aligned
to the middle of surrounding text. |
| BOTTOM |
The applet is aligned
to the bottom of surrounding text. |
- ALT=alternateText
- Specifies alternate text for text-only browsers or browsers that do not support Java.
- CODE=appletFile
- Specifies the name of the Java applet.
- CODEBASE=codebaseURL
- Specifies the base URL of the applet (the directory in which the applet is located).
- DOWNLOAD=n
- Specifies the image download order.
- HEIGHT=pixels
- Specifies the initial height of the applet display area.
- HSPACE=pixels
- Specifies the horizontal space in which the applet displays.
- NAME=appletInstanceName
- Identifies an applet to other applets within the HTML page.
- PARAM NAME=AttributeName
- Passes applet-specific arguments in from an HTML page. There may be no, one, or any
number of PARAM NAME= attributes present in the APPLET start-tag.
- TITLE=text
- Specifies an advisory title string.
- VSPACE=pixels
- Specifies the space in pixels above the applet.
- WIDTH=pixels
- Specifies the initial width of the applet display area.
Applet resources are loaded relative to the document URL. The CODEBASE=
attribute is used to change this default behavior. If the CODEBASE= attribute is
defined, it specifies a different location in which to find applet resources. The value
can be an absolute or a relative URL. The absolute URL is used as is, without
modification, and is not affected by the document's BASE element. When the CODEBASE=
attribute is relative, it is relative to the document URL (or BASE tag, if defined).
Example
<APPLET CODEBASE="applets/javaapps"
CODE=JavaDemo.class
WIDTH=100
HEIGHT=200>
<PARAM NAME=text value="This is a Java applet.">
<IMG SRC=logo.gif ALT="Upgrade to Internet Explorer to view this Java
applet.">
</APPLET>
<AREA
ALT=text
CLASS=type
COORDS=coords
HREF=url
ID=value
NOHREF
NOTAB
SHAPE=shape-type
STYLE=css1 properties
TABINDEX=n
TARGET=window
TITLE=text>
Specifies the shape of a "hot spot" in a client-side image map.
- ALT=text
- Specifies the alternative display for text-only browsers.
- CLASS=type
- Indicates the class to which the element belongs.
- COORDS=coords
- Specifies coordinates that define the hot spot's shape.
- HREF=url
- Specifies the destination of the hot spot.
- ID=value
- Specifies a unique value for the element over the document.
- NOHREF
- Indicates that clicks in this region should cause no action.
- NOTAB
- Excludes the element from the tabbing order.
- SHAPE=shape-type
- Denotes the type of shape. The shape-type can be one of these values:
| RECT |
Rectangle. Takes four
coordinates: x1, y1, x2, and y2. This is the default. |
| RECTANGLE |
Rectangle. Takes four
coordinates: x1, y1, x2, and y2. |
| CIRC |
Circle. Takes three
coordinates: centerx, centery, and radius. |
| CIRCLE |
Circle. Takes three
coordinates: centerx, centery, and radius. |
| POLY |
Polygon. Takes three
or more pairs of coordinates denoting a polygonal region. |
| POLYGON |
Polygon. Takes three
or more pairs of coordinates denoting a polygonal region. |
- STYLE=css1 properties
- Specifies style information.
- TABINDEX=n
- Specifies the position in the tabbing order.
- TARGET=window
- Specifies to load the link into the targeted window. The window can be one of
these values:
| window |
Specifies to load the
link into the targeted window. The window must begin with an alphanumeric character
to be valid, except for the following four target windows: |
| _blank |
Load the link into a
new blank window. This window is not named. |
| _parent |
Load the link into the
immediate parent of the document the link is in. |
| _self |
Load the link into the
same window the link was clicked in. |
| _top |
Load the link into the
full body of the window. |
- TITLE=text
- Specifies an advisory title for balloon help.
Examples
<AREA SHAPE="RECT" COORDS="50, 25, 150, 125" HREF="http://www.sample.com">
<AREA SHAPE="RECT" COORDS="50, 25, 150, 125" NOHREF>
<AREA TARGET="viewer" HREF="sample.htm" SHAPE="CIRCLE" COORDS="50, 25,
150, 125">
<B>
</B>
Renders text in bold. The end-tag turns off the bold formatting.
Example
<B>Displayed in a bold typeface.</B>
<BASE
HREF=url
TARGET=window>
Specifies the document's URL.
- HREF=url
- Specifies the document's full URL in case the document gets read out of context and the
reader wants to refer to the original.
- TARGET=window
- Specifies to load all the links on the page into the targeted window. This can be
overridden by specifying a different target attribute for a specific link. The window
can be one of these values:
| window |
Specifies to load the
link into the targeted window. The window must begin with an alphanumeric character
to be valid, except for the following four target windows: |
| _blank |
Load the link into a
new blank window. This window is not named. |
| _parent |
Load the link into the
immediate parent of the document the link is in. |
| _self |
Load the link into the
same window the link was clicked in. |
| _top |
Load the link into the
full body of the window. |
Examples
<BASE HREF="http:// www.sample.com/hello.htm">
<BASE HREF="http:// www.sample.com/hello.htm" TARGET="viewer">
<BASEFONT
COLOR=color
NAME=name
SIZE=n>
Sets the base font value. This value will be used as a default for any text not
formatted with a style sheet or using the FONT element.
- COLOR=color
- Specifies the color of the base font.
- NAME=name
- Specifies the name of the base font.
- SIZE=n
- Specifies the size of the base font. The n can be between 1 and 7 inclusive;
default is 3; 7 is largest. Throughout the document, relative font size settings (for
example, <FONT SIZE=+3>) are set according to this.
Example
<BASEFONT SIZE=3> This sets the base font size to 3.
<FONT SIZE=+4> Now the font size is 7.
<FONT SIZE=-1> Now the font size is 2.
<BGSOUND
LOOP=n
SRC=url>
Adds background sounds or "soundtracks" to a page. Sounds can either be
samples (.wav or .au format) or MIDI format.
- LOOP=n
- Specifies how many times a sound will loop when activated. If n=-1, or if LOOP=INFINITE
is specified, it will loop indefinitely.
- SRC=url
- Specifies the address of a sound to be displayed.
<BIG>
Makes text one size larger.
Example
<BIG>This text is larger.</BIG>
<BLOCKQUOTE>
</BLOCKQUOTE>
Indents both left and right margins. Used to set apart quotations in text. The end-tag
is required.
Example
<P>He said,
<BLOCKQUOTE>"Hi there!"</BLOCKQUOTE>
<BODY
ALINK=color
BACKGROUND=url
BGCOLOR=color
BGPROPERTIES=FIXED
CLASS=type
ID=value
LEFTMARGIN=n
LINK=color
STYLE=css1 properties
TEXT=color
TOPMARGIN=n
VLINK=color>
</BODY>
Specifies the beginning and end of the document body. This element also allows you to
set the background image, the background color, the link colors, and the top and left
margins of the page. The end-tag is required.
- ALINK=color
- Specifies the color of the active hyperlink.
- BACKGROUND=url
- Specifies a background picture. The picture is tiled behind the text and graphics on the
page.
- BGCOLOR=color
- Sets the background color of the page. The color can be either a hexadecimal,
red-green-blue color value or a predefined color name. See Color.
- BGPROPERTIES=FIXED
- Specifies a "watermark," which is a background picture that does not scroll.
The background image remains fixed behind any scrolling foreground information.
- CLASS=type
- Indicates the class to which the element belongs.
- ID=value
- Specifies a unique value for the element over the document.
- LEFTMARGIN=n
- Specifies the left margin for the entire body of the page and overrides the default
margin. If set to zero, the left margin will be exactly on the left edge.
- LINK=color
- Sets the color of hyperlinks that have not yet been visited. The color can be
either a hexadecimal, red-green-blue color value or a predefined color name. See Color.
- STYLE=css1 properties
- Specifies style information.
- TEXT=color
- Sets the color of text on the page. The color can be either a hexadecimal,
red-green-blue color value or a predefined color name. See Color.
- TOPMARGIN=n
- Specifies the margin for the top of the page and overrides the default margin. If set to
zero, the top margin will be on the precise top edge.
- VLINK=color
- Sets the color of hyperlinks that have already been visited. The color can be
either a hexadecimal, red-green-blue color value or a predefined color name. See Color.
Examples
The HTML used to insert the background image of this page is:
<BODY BACKGROUND="/ie/images/watermrk.gif" BGPROPERTIES=FIXED
BGCOLOR=#FFFFFF TEXT=#000000 LINK=#ff6600 VLINK=#330099>
<HTML><BODY>Here's a Web page!</BODY></HTML>
<BR
CLASS=type
CLEAR=NONE|LEFT|RIGHT|ALL>
Inserts a line break.
- CLASS=type
- Indicates the class to which the element belongs.
- CLEAR=NONE|LEFT|RIGHT|ALL
- Controls the display of text below or beside an image. The default is NONE.
| NONE |
The next text in the
document appears immediately after the image. |
| LEFT |
The next text in the
document is displayed below the image at the next full left margin. |
| RIGHT |
The next text in the
document is displayed below the image at the next full right margin. |
| ALL |
The next text in the
document is displayed below the image at the next full left and right margins. |
<CAPTION
ALIGN=CENTER|LEFT|RIGHT
VALIGN=TOP|BOTTOM>
</CAPTION>
Specifies a caption for a table. This element is valid only within the TABLE element. The
end-tag is required.
- ALIGN=CENTER|LEFT|RIGHT
- Sets the alignment of the caption to the table. The default is CENTER.
| CENTER |
The caption is
centered above the margins of the table. |
| LEFT |
The caption is aligned
to the left side of the table. |
| RIGHT |
The caption is aligned
to the right side of the table. |
- VALIGN=TOP|BOTTOM
- Sets the vertical alignment of the table caption. The default is TOP.
| TOP |
The caption is at the
top of the table. |
| BOTTOM |
The caption is at the
bottom of the table. |
Example
<TABLE>
<CAPTION VALIGN=BOTTOM>
This caption will appear below the table.
</CAPTION>
<TR>
....
</TR>
</TABLE>
<CENTER>
</CENTER>
Centers text and images. The end-tag returns the alignment to its previous state.
Example
<CENTER>This text appears centered on the page.</CENTER>
<CITE>
</CITE>
Indicates a citation. Refers to a book, paper, or other published source material. The
end-tag is required.
Example
<CITE>Book Title.</CITE>
<CODE>
</CODE>
Specifies a code sample. Renders text in a small font. (If no font face is specified,
the font used is fixed-width.) The end-tag is required.
Example
<CODE>Here is some text in a small, fixed-width font.</CODE>
<COL
ALIGN=LEFT|CENTER|RIGHT
SPAN=n>
Sets the properties of one or more columns. Use this element in conjunction with a COLGROUP element to set
the properties of a column within a group of columns.
- ALIGN=CENTER|LEFT|RIGHT
- Specifies the text alignment in cells within the column. The default is CENTER.
| CENTER |
Text is aligned with
the center of cells in the column. |
| LEFT |
Text is aligned to the
left of cells in the column. |
| RIGHT |
Text is aligned to the
right of cells in the column. |
- SPAN=n
- Sets the number of consecutive columns for which the properties are set.
This element is valid only within a table. The end-tag is not required and is not
recommended.
The properties specified by the COL element always override the properties specified by
the preceding COLGROUP
element.
Example
<TABLE>
<COLGROUP>
<COL ALIGN=RIGHT>
<COL ALIGN=LEFT>
<COLGROUP>
<COL ALIGN=CENTER>
<TBODY>
<TR>
<TD>This is the first column in the group and is right-aligned.</TD>
<TD>This is the second column in the group and is left-aligned.</TD>
<TD>This column is in a new group and is centered.</TD>
</TR>
</TABLE>
<COLGROUP
HALIGN=CENTER|LEFT|RIGHT
SPAN=n
VALIGN=MIDDLE|TOP|BOTTOM
WIDTH=n>
Sets the properties of one or more columns.
- HALIGN=CENTER|LEFT|RIGHT
- Specifies the horizontal alignment of text in the cells for the column group specified
in the element. The default is CENTER.
| CENTER |
Text is aligned in the
center of cells in the column. |
| LEFT |
Text is aligned to the
left of cells in the column. |
| RIGHT |
Text is aligned to the
right of cells in the column. |
- SPAN=n
- Sets the number of consecutive columns that are in the group and for which the
properties are set.
- VALIGN=MIDDLE|TOP|BOTTOM
- Specifies the vertical alignment of text within the cells specified in the columns. The
default is MIDDLE.
| MIDDLE |
Text is aligned in the
middle of cells specified in the column group. |
| TOP |
Text is aligned to the
top of cells specified in the column group. |
| BOTTOM |
Text is aligned to the
bottom of cells specified in the column group. |
| WIDTH=n |
Indicates the width of
the columns in the column group. |
This element is valid only within a table. The end-tag is not required and is not
recommended.
If the columns in a group of columns require varying properties, use COLGROUP in
conjunction with one or more COL elements to individually set the
properties for the columns.
This element affects how rules are drawn within a table when groups are specified with
the RULES= attribute
in the TABLE element.
In this case, vertical rules are drawn between column groups rather than between
individual columns.
Example
<TABLE>
<COLGROUP ALIGN=RIGHT>
<COLGROUP SPAN=2 ALIGN=LEFT>
<TBODY>
<TR>
<TD>This column is in the first group and is right-aligned.</TD>
<TD>This column is in the second group and is left-aligned.</TD>
<TD>This column is in the second group and is left-aligned.</TD>
</TR>
</TABLE>
<COMMENT>
</COMMENT>
Indicates a comment. The text between the elements is ignored, unless it contains HTML
code.
This element is provided for backward compatibility. See the entry for above.
Example
<COMMENT>This won't be printed.</COMMENT>
<DD
CLASS=type
ID=value
STYLE=css1 properties>
Indicates that the following text is a definition of a term, and therefore should be
displayed in the right-hand column of a definition list.
- CLASS=type
- Indicates the class to which the element belongs.
- ID=value
- Specifies a unique value for the element over the document.
- STYLE=css1 properties
- Specifies style information.
Example
<DL><DT>Cat<DD>A small domesticated mammal.
<DT>Lizard<DD>A reptile generally found in dry areas.</DL>
<DFN>
Specifies a definition. Formats a term for its first appearance in a document.
Example
<DFN>HTML stands for hypertext markup language.</DFN>
<DIR
COMPACT>
</DIR>
Specifies that the following text is a directory list that consists of individual
items, each beginning with an LI element and none containing more than
20 characters, that should be displayed in columns. The end-tag is required.
- COMPACT
- Speficies a compact list style. The entries in the list appear closer together.
Example
<DIR><LI>Art
<LI>History
<LI>Literature
<LI>Sports
<LI>Entertainment
<LI>Science
</DIR>
<DIV
ALIGN=LEFT|CENTER|RIGHT|JUSTIFY
CLASS=type
ID=value
LANG=iso
NOWRAP>
</DIV>
Represents different kinds of containers, for example, chapter, section, abstract, or
appendix. The end-tag is required.
- ALIGN=LEFT|CENTER|RIGHT|JUSTIFY
- Specifies the default horizontal alignment for the contents of this element. This is
needed for compatibility with deployed browsers and can be overridden by style sheets. The
default is LEFT.
| LEFT |
Text is aligned to the
left. |
| CENTER |
Text is centered. |
| RIGHT |
Text is aligned to the
right. |
| JUSTIFY |
Text is justified to
the right and left margins. |
- CLASS=type
- Indicates the class to which the element belongs.
- ID=value
- Specifies a unique value for the element over the document.
- LANG=iso
- Indicates the ISO standard language. Enter the standard abbreviation to indicate the
language of the element.
- NOWRAP
- Specifies that the text lines within a document are not automatically wrapped by the
browser.
Example
<DIV>
This text represents a section.
</DIV>
<DIV ALIGN=CENTER>
This text represents another section, and its text is centered.
</DIV>
<DL
CLASS=type
COMPACT
ID=value
STYLE=css1 properties>
</DL>
Specifies that the following block is a definition list, that is, an automatically
formatted list with terms on the left and their definitions indented below. The end-tag is
required.
See DT (directory
term) and DD
(directory definition) for a description of elements that appear within a directory list.
- CLASS=type
- Indicates the class to which the element belongs.
- COMPACT
- Specifies that the list should be organized in a compact style. Each entry appears
closer together.
- ID=value
- Specifies a unique value for the element over the document.
- STYLE=css1 properties
- Specifies style information.
Example
<DL>
<DT>Cat
<DD> A small domesticated mammal.
<DT>Lizard
<DD>A reptile generally found in dry areas.
</DL>
<DT>
Specifies a term in a definition list. Indicates that the text is a term to be defined,
and should therefore be displayed in the left-hand column of a definition list.
Example
<DL>
<DT>Cat
<DD> A small domesticated mammal.
<DT>Lizard
<DD>A reptile generally found in dry areas.
</DL>
<EM>
</EM>
Emphasizes text, usually by rendering it in italic. The end-tag is required.
Example
<EM>This text will be in italics.</EM>
<EMBED
HEIGHT=n
NAME=text
[optional parameter="value"]
PALETTE=#rgb|#rgb
SRC=url
UNITS=PIXELS|EN
WIDTH=n>
</EMBED>
Indicates an embedded object. OBJECT is the preferred element for inserting objects,
but EMBED is included for backward compatibility with earlier HTML documents. See OBJECT.
The end-tag is required.
- HEIGHT=n
- Specifies the height, in pixels, of the object on the page.
- NAME=text
- Indicates the name used by other objects or elements to refer to this object.
- optional parameter="value"
- Specifies any parameters that are specific to the object. In the example that follows,
AUTOSTART and PLAYBACK are optional parameters.
- PALETTE=#rgb|#rgb
- Sets the color palette to the foreground or background color. The first rgb value
specifies the foreground color. The second rgb value specifies the background color. For
example, PALETTE=#aa0000|#001100 sets the foreground color to red and the
background color to green.
- SRC=url
- Specifies the name of any source data input to the object.
- UNITS=PIXELS|EN
- Specifies the measurement unit used by the HEIGHT= and WIDTH= attributes.
| PIXELS |
The default size. |
| EN |
Half the point size. |
- WIDTH=n
- Specifies the width of the object, in pixels, on the page.
Example
<EMBED SRC="MyMovie.AVI" WIDTH=100 HEIGHT=250 AUTOSTART="TRUE"
PLAYBACK="FALSE">
<FONT
COLOR=color
FACE=name
SIZE=n>
Sets the size, font, and color of text.
- COLOR=color
- Sets font color. The color can be either a hexadecimal, red-green-blue color
value or a predefined color name. See Color.
- FACE="name [,name2[,name3]]"
- Sets the font. A list of font names can be specified. If the first font is available on
the system, it will be used; otherwise, the second will be tried, and so on. If none are
available, a default font will be used.
- SIZE=n
- Specifies font size between 1 and 7 (7 is largest). A plus or minus before the number
indicates a size relative to the current BASEFONT setting. Relative font sizes
are not cumulative, so putting two <FONT SIZE="+1"> elements in a row does
not result in the font size being increased by 2.
<FORM
ACTION=url
METHOD=GET|POST
onSubmit=event
TARGET=window>
</FORM>
Denotes a form. The end-tag is required.
- ACTION=url
- Specifies the address to be used to carry out the action of the form. If none is
specified, the base URL of the document is used.
- METHOD=GET|POST
- Indicates how the form data should be sent to the server. The default is GET.
| GET |
Appends the arguments
to the action URL and opens it as if it were an anchor. |
| POST |
Sends the data via an
HTTP post transaction. |
- onSubmit=event
- References an event, possibly a script statement such as a VBScript functional call,
when the form is sent to the server.
- TARGET=window
- Specifies to load the results of the form submission into the targeted window. The window
can be one of these values:
| window |
Specifies to load the
link into the targeted window. The window must begin with an alphanumeric character
to be valid, except for the following four target windows: |
| blank |
Load the link into a
new blank window. This window is not named. |
| parent |
Load the link into the
immediate parent of the document the link is in. |
| self |
Load the link into the
same window the link was clicked in. |
| top |
Load the link into the
full body of the window. |
Example
<FORM TARGET="viewer" ACTION="http://www.sample.com/bin/search">
...
</FORM>
<FRAME
ALIGN=LEFT|CENTER|RIGHT|TOP|BOTTOM
FRAMEBORDER=1|0
MARGINHEIGHT=height
MARGINWIDTH=width
NAME=name
NORESIZE
SCROLLING=yes|no
SRC=address>
Defines a single frame in a frameset. There is no matching end-tag.
- ALIGN=LEFT|CENTER|RIGHT|TOP|BOTTOM
- Sets the alignment of the frame or of the surrounding text. The default is LEFT.
| LEFT |
The frame is drawn as
a left-flush "floating frame," and text flows around it. |
| CENTER |
Surrounding text is
aligned with the center of the frame. |
| RIGHT |
The frame is drawn as
a right-flush "floating frame," and text flows around it. |
| TOP |
Surrounding text is
aligned with the top of the frame. |
| BOTTOM |
Surrounding text is
aligned with the bottom of the frame. |
- FRAMEBORDER=1|0
- Renders a 3-D edge border around the frame. 1 (default) inserts a border. 0 displays no
border.
- MARGINHEIGHT=height
- Controls the margin height for the frame, in pixels.
- MARGINWIDTH=width
- Controls the margin width for the frame, in pixels.
- NAME=name
- Provides a target name for the frame.
- NORESIZE
- Prevents the user from resizing the frame.
- SCROLLING=yes|no
- Creates a scrolling frame.
- SRC=address
- Displays the source file for the frame.
Example
<FRAME FRAMEBORDER=0 SCROLLING=NO SRC="sample.htm">
<FRAMESET
COLS=col-widths
FRAMEBORDER=1|0
FRAMESPACING=spacing
ROWS=row-heights>
</FRAMESET>
Hosts the FRAME, FRAMESET,
and NOFRAMES
elements. FRAMESETs can be nested within each other to have layouts within a frame. Each
frameset can exist at the same level as a frame.
The end-tag is required.
- COLS=col-widths
- Creates a frame document with columns. You can specify the column dimensions by
percentage (%), pixels, or a relative size (*).
- FRAMEBORDER=1|0
- Provides the option to display or not display a 3-D border for a frame. 1 (default) sets
a frame border. 0 displays no border.
- FRAMESPACING=spacing
- Creates additional space between frames, in pixels.
- ROWS=row-heights
- Creates a frame document with rows. You can specify the row dimensions by percentage
(%), pixels, or a relative size (*).
The FRAMEBORDER= and FRAMESPACING= attributes are inherited from any
containing FRAMESET element, which means you need only set the attribute on the single,
outermost FRAMESET tag to affect all FRAME tags on that page.
Example
<FRAMESET SCROLLING=YES COLS="25%, 50%, *">
<FRAME SRC="contents.htm">
<FRAME SRC="info.htm">
<FRAME SCROLLING=NO SRC="graphic.htm">
</FRAMESET>
<Hn
ALIGN=LEFT|CENTER|RIGHT>
</Hn>
Renders text in heading style. Use H1 through H6 to specify different sizes and styles
of headings. The end-tag (required) restores the formatting to normal.
- n
- Sets the heading level. This is an integer from 1 to 6.
- ALIGN=LEFT|CENTER|RIGHT
- Sets the alignment of heading text. The default is LEFT.
| LEFT |
Text is aligned to the
left. |
| CENTER |
Text is aligned to the
center. |
| RIGHT |
Text is aligned to the
right. |
Example
<H1>Welcome to Internet Explorer!</H1>
<HEAD>
</HEAD>
Marks the HTML document heading.
The end-tag is required to donote closure for the document heading. Typically the BODY
begin-tag appears after the HEAD end-tag.
Example
<HEAD>
<TITLE>A Simple Document</TITLE>
</HEAD>
<HR
ALIGN=LEFT|CENTER|RIGHT
CLASS=type
COLOR=color
ID=value
NOSHADE
SIZE=n
STYLE=css1 properties
WIDTH=n>
Draws a horizontal rule.
- ALIGN=CENTER|LEFT|RIGHT
- Sets the alignment of the rule. The default is CENTER.
| CENTER |
Rule is centered on
the page. |
| LEFT |
Rule is aligned to the
left of the page. |
| RIGHT |
Rule is aligned to the
right of the page. |
- CLASS=type
- Indicates the class to which the element belongs.
- COLOR=color
- Sets the color of the rule. The color can be either a hexadecimal, red-green-blue
color value or a predefined color name. See Color.
- ID=value
- Specifies a unique value for the element over the document.
- NOSHADE
- Draws the rule without 3-D shading.
- SIZE=n
- Sets the height of the rule, in pixels.
- STYLE=css1 properties
- Specifies style information.
- WIDTH=n
- Sets the width of the rule, either in pixels or as a percentage of window width. To
specify a percentage, the n must end with the percent (%) sign.
Example
<HR SIZE=5 WIDTH=80% NOSHADE>
<HTML>
</HTML>
Denotes the file as an HTML document. The begin-tag typically appears after the
!DOCTYPE element. The end-tag comes after all HTML elements in the document.
This element has no attributes.
Example
<HTML>
<BODY>
<P>This is an HTML document.
</BODY>
</HTML>
<I>
</I>
Renders text in italic. The end-tag turns off the italic formatting.
Example
<I>This text will be in italic.</I>
<IFRAME
ALIGN=LEFT|CENTER|RIGHT|TOP|BOTTOM
FRAMEBORDER=1|0
HEIGHT=height
MARGINHEIGHT=height
MARGINWIDTH=width
NAME=name
SCROLLING=yes|no
SRC=address
WIDTH=width>
</IFRAME>
Defines a floating frame. The end-tag is required.
- ALIGN=LEFT|CENTER|RIGHT|TOP|BOTTOM
- Sets the alignment of the frame or of the surrounding text. The default is LEFT.
| LEFT |
The frame is drawn as
a left-flush "floating frame," and text flows around it. |
| CENTER |
Surrounding text is
aligned with the center of the frame. |
| RIGHT |
The frame is drawn as
a right-flush "floating frame," and text flows around it. |
| TOP |
Surrounding text is
aligned with the top of the frame. |
| BOTTOM |
Surrounding text is
aligned with the bottom of the frame. |
- FRAMEBORDER=1|0
- Renders a 3-D edge border around the frame. 1 (default) inserts a border. 0 displays no
border.
- HEIGHT=height
- Controls the height (in pixels) of the floating frame.
- MARGINHEIGHT=height
- Controls the margin height for the frame, in pixels.
- MARGINWIDTH=width
- Controls the margin width for the frame, in pixels.
- NAME=name
- Provides a target name for the frame.
- SCROLLING=yes|no
- Creates a scrolling frame.
- SRC=address
- Displays the source file for the frame.
- WIDTH=width
- Controls the width of the floating frame, in pixels.
Example
<IFRAME FRAMEBORDER=0 SCROLLING=NO SRC="sample.htm"></IFRAME>
<IMG
ALIGN=TOP|MIDDLE|CENTER|BOTTOM|LEFT|RIGHT
ALT=text
BORDER=n
CLASS=type
CONTROLS
DYNSRC=url
HEIGHT=n
HSPACE=n
ID=value
ISMAP=image
LOOP=n
SRC=url
START=start-event
STYLE=css1 properties
TITLE=text
USEMAP=url
VSPACE=n
WIDTH=n>
Inserts an image.
- ALIGN=TOP|MIDDLE|CENTER|BOTTOM|LEFT|RIGHT
- Sets the alignment of the image or of the surrounding text. The default is TOP.
| TOP |
Surrounding text is
aligned with the top of the image. |
| MIDDLE |
Surrounding text is
aligned with the middle of the image. |
| CENTER |
Surrounding text is
aligned with the center of the image. |
| BOTTOM |
Surrounding text is
aligned with the bottom of the image. |
| LEFT |
The picture is drawn
as a left-flush "floating image," and text flows around it. |
| RIGHT |
The picture is drawn
as a right-flush "floating image," and text flows around it. |
- ALT=text
- Specifies text that will be displayed in place of the picture if Show Pictures is turned
off.
- BORDER=n
- Specifies the size of a border to be drawn around the image. If the image is a
hyperlink, the border is drawn in the appropriate hyperlink color. If the image is not a
hyperlink, the border is invisible.
- CLASS=type
- Indicates the class to which the element belongs.
- CONTROLS
- If a video clip is present, displays a set of controls under the clip.
- DYNSRC=url
- Specifies the address of a video clip or VRML world to be displayed in the window.
Stands for Dynamic Source.
- HEIGHT=n
- Along with WIDTH=, specifies the size at which the picture is drawn. If the
picture's actual dimensions differ from those specified, the picture is stretched to match
what is specified. Internet Explorer also uses this to draw a placeholder of appropriate
size for the picture before it is loaded.
- HSPACE=n
- Along with VSPACE=, specifies margins for the image. Similar to BORDER=,
except the margins are not painted with color when the image is a hyperlink.
- ID=value
- Specifies a unique value for the element over the document.
- ISMAP=image
- Identifies the picture as a server-side image map. Clicking the picture transmits the
coordinates of the click back to the server, triggering a jump to another page.
- LOOP=n
- Specifies how many times a video clip will loop when activated. If n=-1, or if LOOP=INFINITE
is specified, it will loop indefinitely.
- SRC=url
- Specifies the address of the picture to insert.
- START=start-event
- Specifies when the file specified by the DYNSRC= attribute should start playing.
The start-event can be one of these values:
| FILEOPEN |
Start playing as soon
as the file is done opening. This is the default. |
| MOUSEOVER |
Start playing when the
user moves the mouse pointer over the animation. |
Both values can be set but must be separated with a comma.
- STYLE=css1 properties
- Specifies style information.
- USEMAP=url
- Identifies the picture as a client-side image map and specifies a MAP to use for acting on the user's
clicks.
- VSPACE=n
- Along with HSPACE=, specifies margins for the image. Similar to BORDER=,
except the margins are not painted with color when the image is a hyperlink.
- WIDTH=n
- Along with HEIGHT=, specifies the size at which the picture is drawn. If the
picture's actual dimensions differ from those specified, the picture is stretched to match
what is specified. Internet Explorer also uses this to draw a placeholder of appropriate
size for the picture before it is loaded.
Example
<IMG SRC=mygraphic.bmp>
<INPUT
ALIGN=TOP|MIDDLE|BOTTOM|LEFT|RIGHT
CHECKED
CLASS=type
ID=value
MAXLENGTH=length
NAME=name
NOTAB
onBlur=event
onChange=event
onClick=event
onFocus=event
onSelect=event
SIZE=size
SRC=url
STYLE=css1 properties
TABINDEX=n
TITLE=text
TYPE=TEXT|TEXTAREA|PASSWORD|CHECKBOX|RADIO|SUBMIT|RESET|FILE|HIDDEN|IMAGE|BUTTON
VALUE=value>
Specifies a form control.
- ALIGN=TOP|MIDDLE|BOTTOM|LEFT|RIGHT
- Aligns text to the form element. The default is TOP.
| TOP |
Surrounding text is
aligned to the top of the form element. |
| MIDDLE |
Surrounding text is
aligned to the middle of the form element. |
| BOTTOM |
Surrounding text is
aligned to the bottom of the form element. |
| LEFT |
Surrounding text is
aligned to the left of the form element. |
| RIGHT |
Surrounding text is
aligned to the right of the form element. |
- CHECKED
- Sets a check box or radio button to "selected" when the form first loads.
Applies only to radio buttons and check boxes.
- CLASS=type
- Indicates the class to which the element belongs.
- ID=value
- Specifies a unique value for the element over the document.
- MAXLENGTH=length
- Indicates the maximum number of characters that can be entered into a text control.
- NAME=name
- Specifies the name of the control.
- NOTAB
- Specifies that the element does not appear in the tabbing order.
- onBlur=event
- Specifies an event to occur when the element loses focus.
- onChange=event
- Specifies an event to occur when the value of the element is changed.
- onClick=event
- Specifies an event to occur when the mouse is clicked on the element.
- onFocus=event
- Specifies an event to occur when the cursor focus is on the element.
- onSelect=event
- Specifies an event to occur when the element is selected.
- SIZE=size
- Specifies the size of the control (in characters). For TEXTAREA-type controls, both width and
height can be specified using this format: "width,height".
- SRC=url
- Specifies the address of the image to be used. Used when TYPE=IMAGE. I>STYLE=css1 properties
- Specifies style information.
- TABINDEX=n
- Specifies the order of the element in the tabbing sequence.
- TITLE=text
- Specifies an advisory title.
- TYPE=type
- Specifies what type of control to use. The default is TEXT.
| TEXT |
Used for a single-line
text-entry field. Use in conjunction with the SIZE= and MAXLENGTH=
attributes. |
| TEXTAREA |
Used for a multiline
text-entry field. |
| PASSWORD |
The same as the TEXT= attribute, except
that text is not displayed as the user enters it. |
| CHECKBOX |
The element appears as
a check box. |
| RADIO |
Used for attributes
that accept a single value from a set of alternatives. Each radio button field in the
group should be given the same name. Only the selected radio button in the group generates
a name/value pair in the submitted data. Radio buttons require an explicit VALUE=
attribute. |
| SUBMIT |
A button that, when
clicked, submits the form. You can use the VALUE= attribute to provide a
non-editable label to be displayed on the button. The default label is
application-specific. If a SUBMIT button is clicked to submit the form, and that button
has a NAME= attribute specified, that button contributes a name/value pair to the
submitted data. Otherwise, a SUBMIT button makes no contribution to the submitted data. |
| RESET |
A button that, when
clicked, resets the form's fields to their specified initial values. The label to be
displayed on the button can be specified just as for the SUBMIT button. |
| FILE |
Used to insert a file.
|
| HIDDEN |
No field is presented
to the user, but the content of the field is sent with the submitted form. This value can
be used to transmit state information about client/server interaction. |
| IMAGE |
An image field that
you can click, causing the form to be immediately submitted. The coordinates of the
selected point are measured in pixel units from the upper-left corner of the image, and
are returned (along with the other contents of the form) in two name/value pairs. The
x-coordinate is submitted under the name of the field with ".x" appended, and
the y-coordinate is submitted under the name of the field with ".y" appended.
Any VALUE= attribute is ignored. The image itself is specified by the SRC=
attribute, exactly as for the image element. |
| BUTTON |
The element appears as
a button. |
- VALUE=value
- Specifies the default value of textual/numerical controls or specifies the value to be
returned when the Boolean controls are turned on.
Example
<FORM ACTION="http://intranet/survey" METHOD=POST>
<P>Name
<BR><INPUT NAME="CONTROL1" TYPE=TEXT VALUE="Your Name">
<P>Password
<BR><INPUT TYPE="PASSWORD" NAME="CONTROL2">
<P>Color
<BR><INPUT TYPE="RADIO" NAME="CONTROL3" VALUE="0" CHECKED>Red
<INPUT TYPE="RADIO" NAME="CONTROL3" VALUE="1">Green
<INPUT TYPE="RADIO" NAME="CONTROL3" VALUE="2">Blue
<P>Comments
<BR><INPUT TYPE="TEXTAREA" NAME="CONTROL4" SIZE="20,5" MAXLENGTH="250">
<P><INPUT NAME="CONTROL5" TYPE=CHECKBOX CHECKED>Send receipt
<P><INPUT TYPE="SUBMIT" VALUE="OK"><INPUT TYPE="RESET" VALUE="Reset">
</FORM>
<ISINDEX
ACTION=url
PROMPT=prompt-text>
Indicates the presence of a searchable index.
- ACTION=url
- Specifies the gateway program to which the string in the text box should be passed.
- PROMPT=prompt-text
- Specifies a prompt to be used instead of the default prompt.
If the PROMPT= attribute is not used, the element displays the following
message:
"You can search this index. Type the keyword(s) you want to search for:"
followed by a text box.
When the user enters text and presses ENTER, that text is posted
back to the page's URL as a query.
Example
<ISINDEX "http://intranet/search" PROMPT="Type keywords here.">
<KBD>
Indicates text to be entered at the keyboard. Renders text in fixed-width and bold
type. The end-tag is required.
Example
<KBD>The user should enter this text.</KBD>
<LI
CLASS=type
ID=value
STYLE=css1 properties
TYPE=order-type
VALUE=n>
Denotes one item of a list. Denotes a new list item in a DIR, MENU, OL, or UL block.
- CLASS=type
- Indicates the class to which the element belongs.
- ID=value
- Specifies a unique value for the element over the document.
- STYLE=css1 properties
- Specifies style information.
- TYPE=order-type
- Changes the style of an ordered list. The order-type can be one of these values:
| A |
Use large letters. |
| a |
Use small letters. |
| I |
Use large Roman
numerals. |
| i |
Use small Roman
numerals. |
| 1 |
Use numbers. |
- VALUE=n
- Changes the count of ordered lists as they progress.
Example
<DIR> <LI>Art
<LI>History
<LI>Literature
<LI>Sports
<LI>Entertainment
<LI>Science</DIR>
<LINK
HREF=url
REL=forward link type
REV=reverse link type
TITLE=title
TYPE=type>
Establishes a hierarchical organization for navigating between documents. The LINK
element must reside within the HEAD element. The HEAD element may
contain several LINK elements.
- HREF=url
- Specifies the URL that has a relationship to the current document.
- REL=forward link type
- Specifies the forward link type, that is, the type of document to which the link is
being made. Link type "stylesheet" signifies that the associated LINK element
specifies a link to a style sheet that may be applied to the HTML document containing the
LINK element.
- REV=reverse link type
- Indicates that the document to which there is a link has a reverse link from the target
back to the source document.
- TITLE=title
- Indicates an advisory title string. The character string supplied with this attribute is
recommended for use in building a menu of alternative styles.
- TYPE=type
- Specifies the Internet media type and associated parameters for the linked style sheet.
This allows the user agent to disregard style sheets in unsupported notations, without the
need to first make a remote query across the network.
Example
<LINK HREF="http://www.microsoft.com/newdocnewdoc.htm">
<LISTING>
Renders text in fixed-width type.
Example
<LISTING>Here's some plain text.</LISTING>
<MAP
NAME=name>
Specifies a collection of hot spots for a client-side image map.
- NAME=name
- Names a MAP so it can be referenced. The following example shows a client-side image
map.
Example
<MAP NAME="map1">
<AREA ... >
<AREA ... >
</MAP>
<MARQUEE
ALIGN=LEFT|CENTER|RIGHT|TOP|BOTTOM
BEHAVIOR=type
BGCOLOR=color
DIRECTION=direction
HEIGHT=n
HSPACE=n
LOOP=n
SCROLLAMOUNT=n
SCROLLDELAY=n
VSPACE=n
WIDTH=n>
</MARQUEE>
Creates a scrolling text marquee. The scrolling text appears in the container.
- ALIGN=LEFT|CENTER|RIGHT|TOP|BOTTOM
- Specifies how the surrounding text should align with the marquee. The default is LEFT.
| LEFT |
Surrounding text
aligns with the left of the marquee. |
| CENTER |
Surrounding text
aligns with the center of the marquee. |
| RIGHT |
Surrounding text
aligns with the right of the marquee. |
| TOP |
Surrounding text
aligns with the top of the marquee. |
| BOTT |