{{ APIRef("HTML DOM") }}
The HTMLHeadElement
interface contains the descriptive information, or metadata, for a document. This object inherits all of the properties and methods described in the {{ domxref("HTMLElement") }} interface.
Properties
Inherits properties from its parent, {{domxref("HTMLElement")}}.
- {{domxref("HTMLHeadElement.profile")}} {{obsolete_inline}}
- Is a {{ domxref("DOMString") }} representing the URIs of one or more metadata profiles (white space separated).
Methods
No specific method; inherits methods from its parent, {{domxref("HTMLElement")}}.
Specifications
Specification | Status | Comment |
---|---|---|
{{SpecName('HTML WHATWG', "semantics.html#the-head-element", "HTMLHeadElement")}} | {{Spec2('HTML WHATWG')}} | No change from the latest snapshot, {{SpecName("HTML5.1")}}. |
{{SpecName('HTML5.1', "document-metadata.html#the-head-element", "HTMLHeadElement")}} | {{Spec2('HTML5.1')}} | No change from {{SpecName('HTML5 W3C')}}. |
{{SpecName('HTML5 W3C', "document-metadata.html#the-head-element", "HTMLHeadElement")}} | {{Spec2('HTML5 W3C')}} | The following property has been removed: profile . |
{{SpecName('DOM2 HTML', 'html.html#ID-77253168', 'HTMLHeadElement')}} | {{Spec2('DOM2 HTML')}} | No change from {{SpecName("DOM1")}}. |
{{SpecName('DOM1', 'level-one-html.html#ID-77253168', 'HTMLHeadElement')}} | {{Spec2('DOM1')}} | Initial definition. |
Browser compatibility
{{CompatibilityTable}}
Feature | Chrome | Firefox (Gecko) | Internet Explorer | Opera | Safari (WebKit) |
---|---|---|---|---|---|
Basic support | {{CompatVersionUnknown}} | {{CompatGeckoDesktop(1.0)}} | {{CompatVersionUnknown}} | {{CompatVersionUnknown}} | {{CompatVersionUnknown}} |
profile |
{{CompatNo}} | {{CompatVersionUnknown}} {{CompatNo}} 7.0 |
{{CompatNo}} | {{CompatNo}} | {{CompatNo}} |
Feature | Android | Firefox Mobile (Gecko) | IE Phone | Opera Mobile | Safari Mobile |
---|---|---|---|---|---|
Basic support | {{CompatVersionUnknown}} | {{CompatGeckoMobile(1.0)}} | {{CompatVersionUnknown}} | {{CompatVersionUnknown}} | {{CompatVersionUnknown}} |
profile |
{{CompatNo}} | {{CompatVersionUnknown}} {{CompatNo}} 7.0 |
{{CompatNo}} | {{CompatNo}} | {{CompatNo}} |
See also
- The HTML element implementing this interface: {{ HTMLElement("head") }}