HTML DOM Meta-Objekt

Meta object

The Meta object represents the HTML <meta> element.

Access Meta object

You can access the <meta> element using getElementsByTagName():

var x = document.getElementsByTagName("META")[0];

Try it yourself

Create Meta object

You can create a <meta> element using the document.createElement() method:

var x = document.createElement("META");

Try it yourself

Meta object attributes

Eigenschaften Description
content Set or return the value of the content attribute of the meta element.
httpEquiv Set or return the HTTP header of the content attribute.
name Set or return the name of the information in the content attribute.
scheme

Nicht unterstützt in HTML5.

Erklärung des Interpretationsmodus der content-Attributwerte.

Standardattribute und Ereignisse

Das Meta-Objekt unterstützt sowohl Standards als auchEigenschaftenundEreignisse.

Verwandte Seiten

HTML-Referenzhandbuch:HTML <meta>-Tag