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 XHTML of the document.

<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>
    <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

More from About.com

  1. Home
  2. Computing & Technology
  3. Web Design / HTML
  4. HTML and XHTML
  5. XHTML
  6. HTML Tags
  7. The html Element - primary container element for XHTML - XHTML 1.0 HTML 4.0

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

All rights reserved.