元素可提供有关页面的元信息(meta-infonnation),比如针对捜索引擎和更新频度的描述和关键词。
标签位于文档的头部,不包含任何内容。标签的属性定义了与文档相关联的名称/值对。
H5标准声明,使用HTML5 doctype,不区分大小写
声明文档使用的字符编码
优先使用 IE 最新版本和 Chrome
页面描述
页面关键词者
网页作
搜索引擎抓取
<meta name=” viewport" content=" initial-scale=l, maximum-scale=3, minimum-seale=l, user-scalable=no" > 为移动设备添加 viewport
<meta name=” apple-mobile-web-app-title” content="标题” >iOS 设备 begin
添加智能 App 广告条 Smart App Banner (iOS 6+ Safari)
<meta name =” format – detect ion" content ="telphone=no, emai1=no" /> 设置苹果工具栏颜色
启用 360 浏览器的极速模式(webkit)
<meta http-equiv=" X-UA-Compatible" content=” IE二edge" > 避免 IE 使用兼容模式
不让百度转码
<meta name="HandheldFriendly” content=" true" > 针对手持设备优化,主要是针对一些老的不识别
viewport的浏览器,比如黑莓
<meta name=" MobileOptimized" content=” 320" > 微软的老式浏览器
uc 强制竖屏
<meta name="full-screen" content="yes” >
<meta name="x5-fullscreen" content=" true” >
QQ 应用模式
<meta name=" msapplication-tap-highlight” content="no" > windows phone 点击无高光 设置页面不缓存
<meta http-equiv=" cache-control"content="no-cache" >
Was this helpful?
0 / 0