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.
- Netscape 1, 2, 3, 4, 6, 7
- Mozilla 1, 2, 3
- Firefox 1, 2, 3
- Internet Explorer 1, 2, 3, 4, 5, 6, 7, 8
- Opera 1, 2, 3, 4, 5, 6, 7, 8, 9
- Safari 1, 2, 3
- WebTV / MSNTV
- AvantGo Palm OS
- AvantGo Windows CE
- HTML 3.2, 4.0
- XHTML 1.0: XHTML Structure Module
The entire XHTML document. The following tags are valid within the <html> tag:
body, head, frameset
The <html> tag is valid within the following tags:
None
- Basic page
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Title</title>
</head>
<body>
contents of page
</body>
</html>
- 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.

