HTML Document Root | WebReference

HTML Document Root

HTML 4.01 Element Reference

By Lee Underwood

Return to HTML 4.01 element index page

Name: HTML Document Root

<html> (opt.) ... </html> (opt.)

Description: Acts as a container for the entire page.

Browser Compatibility: NN: 4.0+ / IE: 4.0+ / Opera: 4+

  • dir
  • lang
  • version*

* Deprecated

Code Example:

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"

<title>Page Title</title>
   Body of document

Comments: Opening tag appears on the next line after the DOCTYPE and the closing tag is placed on the last line of the entire page.

XHTML Notes: Both opening and closing elements are required.

Created: March 15, 2005