HTML <html> (HTML Document) Tag

❮ Previous Reference Next ❯


<!DOCTYPE html>
  <title>Title of the document</title>

  <h1>Heading of the document</h1>
  <p>Paragraph of the document.</p>



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


Browser Support


Global Attributes

<html> element also supports the Global Attributes in HTML.


Attribute Value Description
xmlns (Default value is "") 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;

❮ Previous Reference Next ❯