jump

HTML 5: The Markup Language (ARIA Edition)

meta charsetdocument character-encoding declaration NEW # T

The meta element with a charset attribute represents a character encoding declaration.

Permitted contents #

empty (void element)

Permitted attributes #

global attributes
Any attributes permitted globally.
charset = character encoding name NEW #
Specifies a character encoding name.
For documents in the XML syntax, the value of the charset attribute must be a case-insensitive match for the string "UTF-8".
A case-insensitive match for any character set name for which the IANA [Character Sets] registry has a Name or Alias field labeled as “preferred MIME name”; or, if none of the Alias fields are so labeled, a case-insensitive match for a Name field in the registry.

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

DOM interface #

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