The cover of The Complete Idiot's Guide to Create a Web Page The Complete Idiot's HTML Tag Reference

| Index | Previous Tag: <FRAMESET> | Next Tag: <Hn> |


<HEAD>

A structural element that serves as a container for the head portion of the page.

Support:

HTML StandardInternet ExplorerNetscape Navigator
2.0 and later 1.0 and later 1.0 and later
Notes:
  • Typical items that appear inside the head section are the <TITLE> tag, the <META> tag, and the <BASE> tag.
  • This tag requires the </HEAD> end tag.
Attributes:
CLASS = "Text"
The style sheet class used by the tag.

Support:

HTML StandardInternet ExplorerNetscape Navigator
Not supported 4.0 and later Not supported

Notes:

  • You can specify two or more classes; be sure to separate each class name with a space.

ID = "Text"
An alphanumeric string that uniquely identifies the tag.

Support:

HTML StandardInternet ExplorerNetscape Navigator
Not supported 4.0 and later Not supported

Notes:

  • Although you can use letters and numbers for the ID, the first character must be a letter.

LANG = "Text"
The language used by the tag's attribute values and text content.

Support:

HTML StandardInternet ExplorerNetscape Navigator
4.0 and later 4.0 and later Not supported

PROFILE = "Text"
The location of one or more meta data profiles, separated by white space.

Support:

HTML StandardInternet ExplorerNetscape Navigator
4.0 and later Not supported Not supported

Notes:

  • A "meta data profile" is a page (or a collection of pages) that include definitions that tell the browser how to interpret subsequent <META> tags that appear in the header.

Example:
<HEAD>
<TITLE>My Home Sweet Home Page</TITLE>
<BASE HREF="http://www.mcfedries.com/">
<META NAME="Description" Content="Yet another home page">
</HEAD>

| Index | Previous Tag: <FRAMESET> | Next Tag: <Hn> |