<meta> HTML中的元标签
1.<meta http-equiv="Content-Type" content="text/html;charset=utf-8" /> --------指定页面的编码
( http-equiv 属性 为名称/值对提供了名称,类似于HTTP的头部协议。content(内容类型):指定网页的格式是HTML类型; charset=utf-8 其作用是指定了当前文档所使用的 字符编码 是中文 ,比如日文的字符集为“iso-2022-jp”,韩文的 是“ks_c_5601”等;)<meta http-equiv="Content-Language" Content="zh-CN"> ------------指定语言的设定
2.<meta http-equiv="pragma" content="no-cache" /> -----禁止浏览器从本地计算机的缓存中访问
3.<meta http-equiv="cache-contrl" content="no-cache" /> ----清除缓存,再次访问需重新加载
4.<meta http-equiv="refresh" content="5; url=http://baidu.com" /> -----5s后自动刷新到百度页面
5.<meta http-equiv="X-UA-Compatible" content="IE=Edge.chrome=1" /> ------声明文档的兼容模式,用IE的最高模式进行渲染
二 name 属性的部分小结
1.<meta name="keywords" content="页面的关键字搜索" />
2.<meta name="describtion" content="描述本网站的主要内容" />
3.<meta name="robots" content="all" /> ---------机器人向导:文件将被检索,且页面上的链接可以被查询
4.<meta name="author" content="作者" />
5.<meta name="build" content="日期" />
6.<meta name="copyright" content="版权" />
7.<meta name="reply-to" content="email" />
8.<meta name="renderer" content="webkit"> -------默认为极速核
9.<meta name="renderer" content="ie-comp"> -------------默认用ie 兼容内核
10.<meta name="renderer" content="ie-stand"> -------------默认用ie 标准内核
三 其他
<link rel="shortcut icon" href="favicon.ico" /> -----------------定义本站点的图标
<link rel="icon" href="favicon.ico" type="/image/x-icon" />