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

<html></html>

By , About.com Guide

<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

Holiday Central

What to eat, where to go, fun things to do and how to save money on the perfect gifts. More >

Family Tech Center

Stay connected and entertained with reviews on tips on the latest HDTVs, cellphones and more. More >

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

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

All rights reserved.