X
HOME HTML5 CSS3 JAVASCRIPT SQL PHP5 JQUERY ANGULAR BOOTSTRAP3 XML MORE...
REFERENCES | EXAMPLES | FORUM | ABOUT

HTML DOM Meta Object


Meta Object

The Meta object represents an HTML <meta> element.

Access a Meta Object

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

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

Create a Meta Object

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

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

Meta Object Properties

Property Description
content Sets or returns the value of the content attribute of a meta element
httpEquiv Sets or returns an HTTP header for the information in the content attribute
name Sets or returns a name for the information in the content attribute
scheme Not supported in HTML5.
Sets or returns how the value of the content attribute should be interpreted

Standard Properties and Events

The Meta object also supports the standard properties and events.


Related Pages

HTML reference: HTML <meta> tag



Your suggestion:

Close [X]

Thank You For Helping Us!

Your message has been sent to W3Schools.

Close [X]
Search w3schools.com:

WEB HOSTING

UK Reseller Hosting

WEB BUILDING

Download XML Editor FREE Website BUILDER Free HTML5 Templates

SHARE THIS PAGE

facebook