HTML tutorial
CSS3 tutorial
Bootstrap tutorial
JavaScript tutorial
JQuery tutorial
AngularJS tutorial
React tutorial
NodeJS tutorial
PHP tutorial
Python tutorial
Python3 tutorial
Django tutorial
Linux tutorial
Docker tutorial
Ruby tutorial
Java tutorial
C tutorial
C ++ tutorial
Perl tutorial
JSP tutorial
Lua tutorial
Scala tutorial
Go tutorial
ASP.NET tutorial
C # tutorial
The Meta object represents an HTML <meta> element
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 create a <meta> element by using the document.createElement() method:
var x = document.createElement("META");
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 |
The Meta object also supports the standard properties and events.
HTML reference: HTML <meta> tag