The HEAD contains general information, or meta-information,
about the document. It is the first thing in any document, lying
above the BODY and just after the <HTML> tag starting the document.
The contents of the HEAD are not displayed as part of the document
text: the displayed material is found within the
BODY. Consequently, only certain mark-up
elements can be placed within the HEAD. These are:
- BASE -- A record of the original URL of the
document: this allows you to move the document to a new directory (or
even a new site) and have relative URLs access the appropriate place
with respect to the original URL.
- ISINDEX -- Usually placed in the
HEAD by the server or a server script/program to indicate that a
document is searchable.
- LINK -- Defines the relationship(s) between
this document and another or others. A document can have several LINK
- META -- A container for document
- NEXTID -- A parameter used by automated
HTML editors to create unique identifiers for the documents.
NOTE: This attribute
was dropped in HTML 4.0, so you should avoid it in new documents.
- TITLE -- The title of the document. This element
is mandatory -- all documents must have a TITLE.
- STYLE --
Stylesheet instructions, written
in a stylesheet language. Stylesheet instructions specify how the
document should be formatted for display. Very few browser currently
- SCRIPT -- Script program code -- for
enclosing, within a document, scripting program code that should be
run with -- and that can interact with -- the document. Example
3.0.2 Example of a HEAD
<TITLE> Goofy Stuff from Blobby Page </TITLE>
<LINK HREF="http://www.somewhere.org/stuff/index.html" REL="index">
..... text of the document