HTML <html> (HTML Document) Tag
Example
<!DOCTYPE html>
<html>
<head>
<title>Title of the document</title>
</head>
<body>
<h1>Heading of the document</h1>
<p>Paragraph of the document.</p>
</body>
</html>
Meaning
The <html> element identifies an HTML or XHTML document.
Because it is the outermost tag in a document, the html element is called the root element.
Version: HTML 2, 3.2, 4, 4.01, 5
Standard Syntax
<html>...</html>
Browser Support
Status
Global Attributes
<html> element also supports the Global Attributes in HTML.
Attributes
Attribute | Value | Description |
---|---|---|
xmlns | http://www.w3.org/1999/xhtml | (Default value is "http://www.w3.org/1999/xhtml") Specifies the XML Namespace of the document. |
Deprecated Attributes
Attribute | Value | Description |
---|---|---|
manifest | Specifies the URI of a resource manifest indicating resources that should be cached locally. | |
version | DTD | Specifies the version of the HTML Document Type Definition that governs the current document. This attribute is not needed, because it is redundant with the version information in the document type declaration. |
By Default CSS Value(s)
Most of the browsers will display the <html> element with the following by default value(s)
html {
display: block;
}
html:focus {
outline: none;
}