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.
<BASE HREF= "base address">
<BASE TARGET= "default target">
The base tag, which is valid only in the
HEAD section, defines the base address of an HTML document,
which is used to determine the full address of relative URL's
that appear in the document. The typical use for this is to move an
HTML document to another site without moving all the images and
related documents with it: the base URL can be set to the directory
where those images and documents remain. The "default target"
will become the target for all links unless specified explicitly. The
following are the predefined target names:
_blank
- Will cause the link to be loaded into a new blank window.
_self
- Will cause the link to be loaded into the same window the link
was in.
_parent
- Will cause the link to be loaded into the parent of this
document.
_top
- Will cause the link to be loaded into the full body of this
window.
<BODY> document-body </BODY>

<BODY BACKGROUND= "URL">
document-body </BODY>

<BODY BGCOLOR= "#rrggbb">
document-body </BODY>

<BODY BGCOLOR= "colorname">
document-body </BODY>

<BODY TEXT= "#rrggbb">
document-body </BODY>

<BODY TEXT= "colorname">
document-body </BODY>

<BODY LINK= "#rrggbb">
document-body </BODY>

<BODY LINK= "colorname">
document-body </BODY>

<BODY ALINK= "#rrggbb">
document-body </BODY>

<BODY ALINK= "colorname">
document-body </BODY>

<BODY VLINK= "#rrggbb">
document-body </BODY>

<BODY VLINK= "colorname">
document-body </BODY>
<BODY LEFTMARGIN= margin>
document-body </BODY>
<BODY TOPMARGIN= margin>
document-body </BODY>
<BODY BGPROPERTieS="FIXED"> document-body</BODY>
The body tag introduces the body of the document. It should appear
after the head
section and occupy the remainder of the document.

The BACKGROUND attribute specifies an
image file to use as the background for the page.

The BGCOLOR, TEXT, LINK,
ALINK, and VLINK attributes specify the
colours to be used for the background, text, links, active links, and
visited links respectively. (An link is active for the moment the user
clicks on it, and changes colour to confirm it has been clicked.)
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 be used wherever colours can be used: in the
BGCOLOR, TEXT, LINK,
ALINK,and VLINK attributes. Valid colours are:
Aqua, Black, Blue, Fuchsia, Gray, Green, Lime, Maroon, Navy, Olive,
Purple, Red, Silver, Teal,Yellow, and White.
The LEFTMARGIN and TOPMARGIN attributes set
the margin at the left and top of the document, in pixels.
The BGPROPERTIES attribute causes the background image
(set with the BACKGROUND attribute) to remain fixed as
the document scrolls: a watermark effect.
<DIV ALIGN= align>
<DIV CLASS= class>
<DIV CLASS= class NOWRAP>
<DIV = clear>
<DIV = lang>
LANG=iso
Indicates the ISO standard language. Enter the standard abbreviation
to indicate the language of the element.
The division tag is used to divide a document up into different
sections, such as chapters, sections, abstract, and appendix. The
CLASS attribute specifies what section this is. The
ALIGN attribute can be one of LEFT, RIGHT,
or CENTER. The NOWRAP attribute stops the
browser from wrapping except where
<BR>'s are included in the document.
<HEAD> head-section </HEAD>
The head tag introduces text that describes an HTML document. Most
documents have only a
TITLE tag in the head section.
<HTML> entire-document </HTML>
The HTML tag defines an HTML document. The <HTML> tag
should be the first in the entire document, and the </HTML>
tag should be the last.
<ISINDEX>
<ISINDEX HREF= URL>
<ISINDEX PROMPT= prompt>
The isindex tag, which is only valid in a
HEAD section, declares that the current HTML document is a
searchable index. The user will be prompted for keywords to search
for. A new URL will be formed by taking the base address of the
current document and adding a '?' character to it, followed by the
keywords separated by '+' characters. The URL attribute
overrides the base address. The prompt attribute changes
the prompt from the default one supplied by the browser.
<LINK REL= relationship HREF=" URL">
<LINK REV= relationship HREF= "URL">

<LINK REV= relationship HREF= "URL"
TITLE= "title">
The link tag appears within the
HEAD section of a document. It has all the same attributes
as the
anchor tag. The main 3 attributes used are REL,
REV and HREF. The REL attribute
specifies the relationship between this document and the link. The
REV attribute specifies a reverse relationship while the
HREF attribute specifies the URL
of the
link. The following is a list of some of the current
relationships. The TITLE attribute specifies an advisory
title string.
Toolbar relationships
Browsers use this tag to build custom toolbars for the document.
REL=Home
- Link points to home or top page in hierarchy.
REL=ToC
- Link points to a table of contents.
REL=Index
- Link points to an index for the current page.
REL=Glossary
- Link points to a glossary.
REL=Copyright
- Link points to a page with copyright information for the current
page.
REL=Up
- Link points to the pages parent in the hierarchy.
REL=Next
- Link points to the next page in a series of pages.
REL=Previous
- Link points to the previous page in a series of pages.
REL=Help
- Link points to information that may further explain the page to
the user.
REL=Bookmark
- Link points to a particular location within a long document. The
TITLE attribute is used to label the bookmark.
Other relationships
REL=Banner
- This use achieves the effect that the
BANNER tag will eventually provide.
REL=StyleSheet
- Link points to a style sheet that will be used to render the
current document.
<META HTTP-EQUIV= "HTTP header field name"
CONTENT= "field value">
<META HTTP-EQUIV= "HTTP header field name"
NAME= "field name" CONTENT= "field
value">
The meta tag, which is only valid in a
HEAD section, declares HTTP meta name/value pairs that are
associated with the HTML document. These are used to extend the HTTP
header information returned by the HTTP server. The support of the
meta information is HTTP server specific. If a name attribute is not
specified the HTTP-EQUIV attribute is used as the name. This tag can
also be used to trigger client side behaviour.
Here are some values and what they are used for:
-
 HTTP-EQUIV="REFRESH"
- The browser will reload the page every "n" seconds. "n" the
number of seconds is specified in the CONTENT
attribute. If the attribute URL is specified the
browser will load the page specified in it after the "n" seconds.
This is referred to as client pull refreshing.
-
META HTTP-EQUIV="Content-Type" CONTENT="text/html" charset= "charset"
- This enables different international character sets to be
selected. Netscape supports the following character sets: "us-ascii",
"iso-8859-1", "x-mac-roman", "iso-8859-2", "x-mac-ce"
"iso-2022-jp","x-sjis", "x-euc-jp", "euc-kr", "iso-2022-kr",
"gb2312", "gb_2312-80" "x-euc-tw", "x-cns11643-1", "x-cns11643-2",
"big5"
<TITLE> title-text </TITLE>
The title tag, which is only valid in a
HEAD section, defines the title of an HTML document. A
title should be chosen that makes sense with no context; for example
Introduction is a poor title since it contains no
indication of the subject matter it discusses. Netscape displays
document titles in the application's title bar and in bookmark lists.
|