--- title: HTMLHtmlElement slug: Web/API/HTMLHtmlElement tags: - API - HTML DOM - Interface - Referencia translation_of: Web/API/HTMLHtmlElement ---
The HTMLHtmlElement
interface serves as the root node for a given HTML document. This object inherits the properties and methods described in the {{domxref("HTMLElement")}} interface.
You can retrieve the HTMLHtmlElement
object for a given document by reading the value of the {{domxref("document.documentElement")}} property.
Inherits properties from its parent, {{domxref("HTMLElement")}}.
No specific method; inherits methods from its parent, {{domxref("HTMLElement")}}.
Specification | Status | Comment |
---|---|---|
{{SpecName('HTML WHATWG', "semantics.html#the-html-element", "HTMLHtmlElement")}} | {{Spec2('HTML WHATWG')}} | Live specification, no change since last snapshot |
{{SpecName('HTML5.1', "semantics.html#the-html-element", "HTMLHtmlElement")}} | {{Spec2('HTML5.1')}} | No change since the last snapshot |
{{SpecName('HTML5 W3C', "semantics.html#the-html-element", "HTMLHtmlElement")}} | {{Spec2('HTML5 W3C')}} | The version element has been removed, as it is non-conforming. |
{{SpecName('DOM2 HTML', 'html.html#ID-33759296', 'HTMLHtmlElement')}} | {{Spec2('DOM2 HTML')}} | Reflecting the element change in {{SpecName("HTML4.01")}}, the version property is now deprecated. |
{{SpecName('DOM1', 'level-one-html.html#ID-33759296', 'HTMLHtmlElement')}} | {{Spec2('DOM1')}} | Initial definition |
{{CompatibilityTable}}
Feature | Chrome | Firefox (Gecko) | Internet Explorer | Opera | Safari (WebKit) |
---|---|---|---|---|---|
Basic support | {{CompatVersionUnknown}} | {{CompatGeckoDesktop(1.0)}} | {{CompatVersionUnknown}} | {{CompatVersionUnknown}} | {{CompatVersionUnknown}} |
Feature | Android | Firefox Mobile (Gecko) | IE Phone | Opera Mobile | Safari Mobile |
---|---|---|---|---|---|
Basic support | {{CompatVersionUnknown}} | {{CompatGeckoMobile(1.0)}} | {{CompatVersionUnknown}} | {{CompatVersionUnknown}} | {{CompatVersionUnknown}} |