HTML DOM Meta Obheto
- 上一页 <menuitem>
- 下一页 <meter>
Meta object
The Meta object represents the HTML <meta> element.
Access Meta object
You can use getElementsByTagName() to access the <meta> element:
var x = document.getElementsByTagName("META")[0];
Create Meta object
You can use the document.createElement() method to create a <meta> element:
var x = document.createElement("META");
Meta object attributes
属性 | 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 |
HTML5 中不支持。 设置或返回 content 属性值的解释方式。 |
相关页面
HTML 参考手册:HTML <meta> 标签
- 上一页 <menuitem>
- 下一页 <meter>