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+

  • dir
  • lang
  • profile

Code Example:

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

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