Document Head | WebReference

Document Head

HTML 4.01 Element Reference

By Lee Underwood

Return to HTML 4.01 element index page

Name: Document Head

<head> (opt.) ... </head> (opt.)

Description: Contains information relating to the document, such as the DOCTYPE, page title, meta tags, scripts, and style sheet links and rules.

Browser Compatibility: NN: 1.0+ / IE: 2.0+ / Opera: 4+

Attributes:
  • dir
  • lang
  • profile

Code Example:

<head>
<title>Our Home Page</title>
<meta name="keywords" content="HTML, JavaScript, Web design>
</head>

Comments: Elements within the <head> are generally not rendered in the user's client.

XHTML Notes: The closing </head> element is required.




Created: March 15, 2005

URL: http://webreference.com/html/reference/specs/