HTML 5: The Markup Language (ARIA Edition)

meta charsetdocument character-encoding declaration # T

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

Content model #

Attribute model #

Element-specific attributes #

charset = charset
Specifies a character encoding name.

Tag omission #

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

Additional constraints #

There must not be more than one meta element per document with a charset attribute.

If a document contains a meta element with a charset attribute, then the document must not contain a meta element in the encoding declaration state.

Permitted contexts #