{{ APIRef("HTML DOM") }}
The HTMLMetaElement
interface contains descriptive metadata about a document. It inherits all of the properties and methods described in the {{domxref("HTMLElement")}} interface.
Properties
Inherits properties from its parent, {{domxref("HTMLElement")}}.
HTMLMetaElement.content
- Gets or sets the value of meta-data property.
HTMLMetaElement.
httpEquiv- Gets or sets the name of an HTTP response header to define for a document.
HTMLMetaElement.
name- Gets or sets the name of a meta-data property to define for a document.
{{obsolete_inline}}HTMLMetaElement.
scheme- Gets or sets the name of a scheme used to interpret the value of a meta-data property.
Methods
No specific method; inherits methods from its parent, {{domxref("HTMLElement")}}.
Specifications
Specification | Status | Comment |
---|---|---|
{{SpecName('HTML WHATWG', "semantics.html#the-meta-element", "HTMLMetaElement")}} | {{Spec2('HTML WHATWG')}} | No change from {{SpecName("HTML5 W3C")}}. |
{{SpecName('HTML5 W3C', "document-metadata.html#the-meta-element", "HTMLMetaElement")}} | {{Spec2('HTML5 W3C')}} | The following property is now obsolete: scheme . |
{{SpecName('DOM2 HTML', 'html.html#ID-37041454', 'HTMLMetaElement')}} | {{Spec2('DOM2 HTML')}} | No change from {{SpecName("DOM1")}}. |
{{SpecName('DOM1', 'level-one-html.html#ID-37041454', 'HTMLMetaElement')}} | {{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}} |
Feature | Android | Firefox Mobile (Gecko) | IE Phone | Opera Mobile | Safari Mobile |
---|---|---|---|---|---|
Basic support | {{CompatVersionUnknown}} | {{CompatGeckoMobile(1.0)}} | {{CompatVersionUnknown}} | {{CompatVersionUnknown}} | {{CompatVersionUnknown}} |
See also
- The HTML element implementing this interface: {{HTMLElement("meta")}}