This document describes tags used to design and implement interactive
forms on a web page.
This table:
Support: |
2.0,
3.0, 3.2 |
1.1+ |
1.0+ |
and these icons:
alert you to tags and attributes that are not supported by all
browsers.
<ADDRESS> text </ADDRESS>
<ADDRESS NOWRAP> text </ADDRESS>
The address tag defines text that gives an address or other contact
information. It is typically displayed in italics, slightly
indented, and is used by automatic
indexers. The NOWRAP attribute stops the
browser from wrapping except where
<BR>'s are.
<BIG> text </BIG>
The big text tag defines text that should be displayed in a larger font
than usual.
<B> text </B>
The bold tag defines text that should be shown in boldface. It can
be
nested with other
idiomatic or
typographic tags but some
browsers will respect only the innermost tag.
<CITE> text </CITE>
The citation tag defines text that cites a book or other work --
most
browsers will display it in italics. It can be nested with other
idiomatic or
typographic tags but some browsers will respect only the innermost
tag.
<CODE> text </CODE>
The code tag defines text that should be shown in a fixed width
font. It can be nested
with other
idiomatic or
typographic tags but some
browsers will respect only the innermost tag. Many browsers use
the same font for the
KBD ,
SAMP ,
TT and CODE tags. For many lines of
fixed width text, with the line breaks and other
whitespace specified by the page author, use the
PRE tag.
<DFN> text </DFN>
The definition tag defines text that defines a term -- many
browsers will display it in italics, though others will ignore it.
It can be nested
with other
idiomatic or
typographic tags but some browsers will respect only the innermost
tag.
<EM> text </EM>
The emphasized tag defines text that should be emphasized -- most
browsers will display it in italics. It can be nested
with other
idiomatic or
typographic tags but some browsers will respect only the innermost
tag.
<XMP> text </XMP>
The example tag introduces example text. Because of the way this
tag handles embedded tags, it should no longer be used.
PRE or
SAMP are better choices.
<FONT SIZE= number>
<FONT COLOR= "#RRGGBB">
<FONT COLOR= "colorname">

<FONT FACE= "facename1, facename2...">
The font tag defines text with a smaller or larger font
than usual. The normal font size corresponds to 3; smaller values of
number will produce a smaller font, and larger values of
number will produce a larger font. If number
has a sign (for example +1), the font will be changed relative to the
BASEFONT.
The COLOR attribute allows you to change the colour of the text.
rrggbb is a six digit hexadecimal number with the first two
digits specifying the red value, the middle two the green value, and
the last two the blue value. Some sample colour values:
- red
- FF0000
- green
- 00FF00
- blue
- 0000FF
- black
- 000000
- white
- FFFFFF
- grey
- 888888
- yellow
- FFFF00
- cyan
- 00FFFF
Colour names can also be used in the COLOR attribute.
Valid colours are: Aqua, Black, Blue, Fuchsia, Gray, Green, Lime,
Maroon, Navy, Olive, Purple, Red, Silver, Teal,Yellow, and White.

The FACE attribute specifies the face
to be used, such as Arial or Courier. If multiple names are specified,
the first one listed that is installed on the client machine is used.
<I> text </I>
The italic tag defines text that should be shown in italics. It can
be nested with other
idiomatic or
typographic tags but some
browsers will respect only the innermost tag.
<KBD> text </KBD>
The keyboard tag defines text that should be shown in a fixed width
font. It can be nested with other
idiomatic or
typographic tags but some browsers will respect only the innermost
tag. Many browsers use the same font for the KBD ,
SAMP ,
TT and
CODE tags. For many lines of
fixed width text, with the line breaks and other
whitespace specified by the page author, use the
PRE tag.
<LISTING> text </LISTING>
The listing tag introduces a program listing. Because of the way
this tag handles embedded tags, it should no longer be used.
PRE is a better choice.
<SAMP> text </SAMP>
The sample tag defines text that should be shown as
literal characters in a
fixed width font. It can be nested with other idiomatic or
typographic tags but some
browsers will respect only the innermost tag. Many browsers use
the same font for the
KBD , SAMP ,
TT and
CODE tags. For many lines of fixed width text, with the
line breaks and other
whitespace specified by the page author, use the
PRE tag.
<SMALL> text </SMALL>
The small text tag defines text that should be displayed in a
smaller
font than usual.
<STRIKE> text </STRIKE>
The strikethrough tag defines text that should be shown with a
horizontal line through it. It can be nested with other
idiomatic or
typographic tags but some
browsers will respect only the innermost tag.
<STRONG> text </STRONG>
The strong tag defines text that should be strongly emphasized --
most
browsers will display it in boldface. It can be nested with other
idiomatic or
typographic tags but some browsers will respect only the innermost
tag.
<SUB> text </SUB>
The subscript tag defines text that should be displayed in a
smaller
font than usual, lower on the line than usual.
<SUP> text </SUP>
The superscript tag defines text that should be displayed in a
smaller font than usual, higher on the line than usual.
<TT> text </TT>
The teletype tag defines text that should be shown in a
fixed width font. It can be nested with other
idiomatic or
typographic tags but some
browsers will respect only the innermost tag. Many browsers use
the same font for the
KBD ,
SAMP , TT and
CODE tags. For many lines of fixed width text, with the
line breaks and other whitespace
specified by the page author, use the
PRE tag.
<U> text </U>
The underlined tag defines text that should be shown with a line
underneath it. It can be nested with other
idiomatic or
typographic tags but some
browsers will respect only the innermost tag. Many browsers,
including some versions of Netscape, do not support this tag.
<VAR> text </VAR>
The variable tag defines text that represents a variable-- most
browsers will display it in italics. It can be nested with other
idiomatic or
typographic tags but some browsers will respect only the innermost
tag.
|