概述
记录meta标签属性
meta属性
1. keywords
设置网页关键词,使用,
号隔开
<meta itemprop="keywords" name="keywords" content="关键词1,关键词2">
2. description
设置网站简介
<meta itemprop="description" name="description" content="简介内容">
3. author
设置元素自动聚焦,当网页一加载就会聚焦到该输入框上
<meta itemprop="author" name="author" content="作者名字">
4. X-UA-Compatible
使用IE浏览器哪个版本
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
5. renderer
设置在双内核浏览器中,使用哪个内核进行渲染
<meta name="renderer" content="webkit">
6. Content-Type
设置网页的编码方式
<meta http-equiv="Content-Type" content="text/html" charset="utf-8">
7. format-detection
设置格式内容检测,手机端如果输入手机号码或者邮箱会被自动识别为一个链接,可以选择关闭
<meta name="format-detection" content="telephone=no, email=no">
其他
- 问卷网,快来测一测你掌握牢固了吗~