WEB DEVELOPER SITE
HTMLCSSJAVASCRIPTSQLPHPBOOTSTRAPJQUERYANGULARXML
 

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];

Create a Meta Object

You can make a <meta> component by utilizing the document.createElement() method:

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

Meta Object Properties

Property Description
content Sets or returns the estimation of the substance characteristic of a meta element
httpEquiv Sets or returns a HTTP header for the data in the substance attribute
name Sets or returns a name for the data in the substance attribute
scheme Not upheld in HTML5.
Sets or returns how the estimation of the substance characteristic ought to be interpreted