3. HEAD
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
elements.
- META -- A container for document
metainformation.
- 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
support stylesheets.
- 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
lanuages are JavaScript and VBScript.
3.0.2 Example of a HEAD
<HTML>
<HEAD>
<TITLE> Goofy Stuff from Blobby Page </TITLE>
<BASE HREF="http://www.somewhere.org/stuff/blob.html">
<LINK HREF="http://www.somewhere.org/stuff/index.html" REL="index">
</HEAD>
<BODY>
..... text of the document
</BODY>
</HTML>