jump

HTML: The Markup Language Reference

htmlroot element # T

The html element represents the root of a document.

Permitted contents #

one head element, followed by one body element

Permitted attributes #

global attributes
Any attributes permitted globally.
manifest = Non-empty URL potentially surrounded by spaces 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; }