Web Design / HTML

  1. Home
  2. Computing & Technology
  3. Web Design / HTML

<html></html>

By Jennifer Kyrnin, About.com

<html> Description:

The <html></html> element contains all of the HTML of the document.

In an XHTML document, the <html> tag is the root or container element of the document and must contain the default namespace.

<html> Web Browser Support:

<html> Attributes:

<html> End Tag:

</html> REQUIRED

<html> Contents:

The entire XHTML document. The following tags are valid within the <html> tag:
body, head, frameset

<html> Valid Context:

The <html> tag is valid within the following tags:
None

<html> Usage:

  • Basic page
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <title>Title</title>
    </head>
    <body>
    contents of page
    </body>
    </html>

<html> Special Notes:

  • While it is technically valid to leave out the tags, it is not a good idea as browsers get confused and without a container element, your XHTML document will be invalid.

More <html> Information:

Return to XHTML Element (HTML Tags) Library

Explore Web Design / HTML

About.com Special Features

Web Design / HTML

  1. Home
  2. Computing & Technology
  3. Web Design / HTML

©2009 About.com, a part of The New York Times Company.

All rights reserved.