HTML: The Markup Language

meta charsetdocument character-encoding declaration NEW # T

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

Permitted content #

empty (void element)

Permitted attributes #

Descriptions for attributes specific to this element #

charset = character encoding name NEW
Specifies 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

DOM interface #

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