HTML: The Markup Language

meta http-equiv=content-typedocument character-encoding declaration # T

A meta element with a http-equiv attribute whose value is "content-type" and which has an accompanying content attribute and value represents a character encoding declaration.

Permitted content #

empty (void element)

Permitted attributes #

Descriptions for attributes specific to this element #

http-equiv = "content-type"
Indicates that the meta element is in the encoding declaration state and represents a character encoding declaration.
content = meta-charset string
A specially formatted string providing a character encoding name.

Additional constraints and admonitions #

Tag omission #

The meta element is a void element. A meta element must have a start tag but must not have an end tag.

Permitted parent elements #

any element that can contain metadata elements

Details #

A meta element with a http-equiv attribute whose value is "content-type" and which has an accompanying content attribute and value is said to be in the encoding declaration state.

DOM interface #

interface HTMLMetaElement : HTMLElement {
           attribute DOMString name;
           attribute DOMString httpEquiv;
           attribute DOMString content;
};