Home > Web Front-end > H5 Tutorial > body text

HTML5 对各个标签的定义与规定:meta

WBOY
Release: 2016-05-17 09:10:00
Original
1551 people have browsed it

一般放在head标签或head标签的noscript标签中。
为空元素(没有内容)。
除了全局属性之外,还有 namehttp-equivcontentcharset
DOM
接口

interface HTMLMetaElement : HTMLElement {
           attribute DOMString name;
           attribute DOMString httpEquiv;
           attribute DOMString content;
};

meta标签用来表达title, base, link, style, and script 等标签所表达不了的metadatapragma信息。
其中name, http-equiv, charset属性必须且只能设置一个。
如果设置了name属性或http-equiv属性,还必须设置content属性。
charset
属性用来设定文档的编码,如UTF-8
只允许一个meta标签设置charset属性。
Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template