HTML: The Markup Language

htmlroot element # T

The html element represents the root of a document.

Permitted content #

one head element, followed by one body element

Permitted attributes #

Descriptions for attributes specific to this element #

manifest = URI NEW
The address of the document’s application cache manifest (which controls caching of content for offline use).

Additional constraints and admonitions #

Tag omission #

An html element’s start tag may be omitted if the first thing inside the html element is not a comment.

An html element’s end tag may be omitted if the html element is not immediately followed by a comment and the element contains a body element that is either not empty or whose start tag has not been omitted.

DOM interface #

interface HTMLHtmlElement : HTMLElement {};

Typical default display properties #

html {
display: block; }
html:focus {
outline: none; }