meta标签放在html头部;
用于描述页面元数据,元数据不会显示在客户端,但是会被浏览器解析。
属性 | 值 | 描述 |
---|---|---|
charset | character_set | 文档的字符编码。 |
content | text | 定义与 http-equiv 或 name 属性相关的元信息。 |
http-equiv | content-type default-style refresh | 把 content 属性关联到 HTTP 头部。<meta http-equiv="content-type|default-style|refresh"> <meta http-equiv="content-type" content="text/html; charset=UTF-8"> |
name | application-name author description generator keywords |