HTML 3.2 Reference
based on the HTML 3.2 DTD.
A, ADDRESS, APPLET,
AREA,
B, BASE, BIG, BLOCKQUOTE,
BODY, BR,
CAPTION, CENTER, CITE,
CODE, COMMENTS,
DD, DFN, DIR, DIV,
DL, DOCTYPE, DT,
EM,
FONT, FORM,
HEAD, Hn, HR, HTML,
I, IMG, INPUT, ISINDEX,
KBD,
LI, LINK,
MAP, MENU, META,
OL, OPTION,
P, PARAM, PRE,
SAMP, SCRIPT, SELECT,
SMALL, STRIKE, STRONG,
STYLE, SUB, SUP,
TABLE, TD, TEXTAREA,
TH, TITLE, TR, TT,
U, UL,
VAR
| |
Head Elements | BASE, HEAD, ISINDEX,
LINK, META, SCRIPT, STYLE,
TITLE |
Text Formatting | ADDRESS, B, BIG, BLOCKQUOTE,
CENTER, CITE, CODE, DFN,
DIV, EM, FONT, Hn,
I, KBD, PRE, SAMP, SMALL,
STRIKE, STRONG, SUB,
SUP, TT, U, VAR |
Dividers | BR (Line Break), HR (Horizontal Rule), P (Paragraph) |
Forms | FORM, INPUT, OPTION,
SELECT, TEXTAREA |
Graphics and Links | A, AREA, IMG, MAP |
List Elements | DD, DIR, DL, DT,
LI, MENU, OL, UL |
Miscellaneous | APPLET, BODY, COMMENTS,
DOCTYPE, HTML, PARAM |
Tables | CAPTION, TABLE, TD,
TH, TR |
<A [attributes]> contents </A>
URL
for remote documents )
NAME="anchor-name"
HREF="url" or "url#anchor-name" or
"#anchor-name"
REL="relationship" or
REV="relationship"
REV
attribute is being used )TITLE="title"
<ADDRESS> contents </ADDRESS>
<APPLET [attributes]> parameters, etc.
</APPLET>
CODEBASE="url"
URL
of the applet )CODE="url" HEIGHT="pixels" WIDTH="pixels"
NAME="applet name"
ALT="text"
APPLET
tag but can't/won't run them )ALIGN="top|middle|bottom|left|right"
HSPACE="pixels" VSPACE="pixels"
<AREA [attributes]>
MAP
element )
SHAPE="rect|circle|poly|default"
COORDS="x,y,..."
HREF="url" or NOHREF
NOHREF
for no-action regions )ALT="text"
<B> text </B>
STRONG
instead when possible )<BASE HREF="url">
URL
to be used for any relative
URL
s in the document; must be placed in the
HEAD
section )<BIG> text </BIG>
FONT
instead to choose sizes )<BLOCKQUOTE> contents </BLOCKQUOTE>
<BODY [attributes]> document-body </BODY>
HEAD
section and occupies the remainder of the document )
BACKGROUND="url"
BGCOLOR="..." TEXT="..." LINK="..."
VLINK="..." ALINK="..."
<BR>
CLEAR="left|all|right|none"
<CAPTION ALIGN="top|bottom"> text
</CAPTION>
TABLE
tag; the caption may be aligned either above or below
the table )<CENTER> contents </CENTER>
<CITE> text </CITE>
<CODE> text </CODE>
PRE
tag instead )<!-- comments -->
<DD> definition
DT
element; it defines the term; there is no closing tag )<DFN> text </DFN>
<DIR COMPACT> list entries </DIR>
LI
tags; these
may be arranged in columns and provided in a "compact" manner )<DIV ALIGN="left|center|right"> contents
</DIV>
CENTER
element is likely to be replaced in the near future with this center element )<DL COMPACT> list entries </DL>
DT
and DD
elements; the list can be
arranged in a more "compact" manner )<!DOCTYPE HTML PUBLIC "quoted string">
example: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN"> - this is for HTML 3.2
<DT> term
DL
element and
gives the term to be defined; there is no closing tag )<EM> text </EM>
<FONT [attributes]> text </FONT>
SIZE="[+|-]1|2|3|4|5|6|7"
+
or -
sign to change size relative to the regular size )COLOR="#rrggbb" or "color name"
<FORM [attributes]> form tags </FORM>
INPUT
,
SELECT
, OPTION
, and TEXTAREA
)
ACTION="url"
METHOD=GET|POST
HTTP
method to be used to submit
the form information to the server; POST
is the recommended method )ENCTYPE="media type"
POST
)<HEAD> head section </HEAD>
Head Contents: BASE, ISINDEX, LINK, META, SCRIPT, STYLE, and TITLE.
<Hn ALIGN="left|center|right"> heading
</Hn>
<HR [attributes]>
ALIGN="left|center|right"
NOSHADE
SIZE="pixels"
WIDTH="..."
<HTML> document </HTML>
HTML
document )<I> text </I>
EM
instead when possible )<IMG SRC="url" [attributes]>
ALT="text"
ALIGN="top|middle|bottom|left|right"
WIDTH="pixels" HEIGHT="pixels"
BORDER="pixels"
HSPACE="pixels" VSPACE="pixels"
USEMAP="url"
SRC
is a client-side image map; the
URL
points to the
MAP
element related to the image map )<A HREF="url"><IMG SRC="url" ISMAP></A>
<INPUT TYPE="text|password|checkbox|radio|submit|reset|file|hidden|image"
[attributes]>
FORM
element )
NAME="name"
VALUE="value"
CHECKED
SIZE="size"
MAXLENGTH="length"
SRC="url"
ALIGN="top|middle|bottom|left|right"
<ISINDEX PROMPT="message">
HEAD
section; a prompt message can be specified )<KBD> text </KBD>
PRE
instead )<LI [attributes]> text
OL
, UL
, MENU
, DIR
; there is no closing tag, although it's
optional )
TYPE="disc|square|circle" with UL, and
TYPE="1|a|A|i|I" with OL
VALUE="number"
<LINK [attributes]>
HEAD
section; there's no closing tag )
HREF="url"
REL="relationship" or
REV="reverse relationship"
URL
)TITLE="title"
<MAP NAME="name"> area tags </MAP>
AREA
tags which specify clickable regions )<MENU COMPACT> list entries </MENU>
LI
tags;
the list can be compacted; may soon become obsolete since
UL PLAIN
serves same function )<META [attributes]>
HEAD
section
to embed document meta-information not defined by other HTML
elements )
HTTP-EQUIV="HTTP header field name"
HTTP
response header )NAME="field name"
HTTP-EQUIV
attribute is used as the name )Examples: <META HTTP-EQUIV="expires" CONTENT="23-May-1996 09:00:00 GMT"> <META NAME="author" CONTENT="Chance Warner"> <META NAME="description" CONTENT="Features HTML tags from...">
<OL [attributes]> list entries </OL>
LI
tags )
TYPE="1|a|A|i|I"
START="value"
COMPACT
<OPTION> text
SELECT
element, which in turn is part of a
FORM
)
SELECTED
VALUE="value"
<P ALIGN="left|center|right"> contents
</P>
<PARAM NAME="name" VALUE="value">
APPLET
element )<PRE WIDTH="number"> contents
</PRE>
<SAMP> text </SAMP>
<SCRIPT> javascipt </SCRIPT>
HEAD
section; contain it in a comments field to hide it from
non-javascript browsers )<SELECT NAME="name"> option entries
</SELECT>
OPTION
elements; the name is a symbolic name returned to the server; this is part of a
FORM
)
SIZE="number"
MULTIPLE
<SMALL> text </SMALL>
<STRIKE> text </STRIKE>
<STRONG> text </STRONG>
<STYLE> stylesheet info </STYLE>
HEAD
section; this gives authors much more control over display )<SUB> text </SUB>
<SUB> text </SUB>
<TABLE [attributes]> table content </TABLE>
CAPTION
and TR
tags; whereas TR
has its own allowable elements )
ALIGN="left|center|right"
WIDTH="pixels or percentage"
BORDER="pixels"
CELLSPACING="pixels" and
CELLPADDING="pixels"
<TD [attributes]> cell content
TD
or
TH
elements defines the number of columns in the table; it's used within a
TR
element only )
NOWRAP
ROWSPAN="number" and COLSPAN="number"
HALIGN and VALIGN="top|middle|bottom|baseline"
<TEXTAREA NAME="name"> content
</TEXTAREA>
ROWS="number" COLS="number"
<TH [attributes]> header
TD
or
TH
elements defines the number of columns in the table; used within
TR
elements only )
(Same attributes as TD)
<TITLE> document title </TITLE>
HEAD
section; should be less than 64 characters in length )
<TR [attributes]> table cells
TH
and
TD
tags; closing tag may be omitted, but is recommended )
HALIGN and VALIGN="top|middle|bottom|baseline"
<TT> text </TT>
<U> text </U>
<UL [attributes]> list entries </UL>
LI
tags; use
OL
tag for numbered lists instead )
TYPE="disc|square|circle"
COMPACT
<VAR> text </VAR>