Other Header Elements
Other useful HTML elements also placed within head of the document include:
-
base This element establishes the document’s base location, which serves as a reference for all pathnames and links in the document. For more information, see Chapter 11.
-
isindex Deprecated. This element was once used to add a simple search function to a page. It has been deprecated by HTML 4.01 in favor of form inputs.
-
link This element defines the relationship between the current document and another document. Although it can signify such relationships as index, next, and previous, it is most often used to link a document to an external style sheet (see Chapter 16).
-
script JavaScript and VBScript code may be added to the document within its header using this element. For examples of using the
scriptelement, see Chapter 27.-
style One method for attaching a style sheet to an HTML document is to embed it in the head of the document with the
styleelement. For more information, see Chapter 16.-
meta The
metaelement is used to provide information about a document, such as keywords or descriptions to aid search engines. It is discussed in detail in the next section.