html-head-meta

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">  <!--设置网页字符集-->
<!--以下为meta中 name属性的用法 -->
<meta name="keywords" content="python,html,meta,learn">  <!-- 网站搜索关键字---->
<meta name="description" content="用于学习python前后端开发。"> <!-- 网站内容描述---->
<meta name="viewport" content="width=device-width,initial-scale=1"><!-- 移动端窗口的设置 -->
<meta name="robots" content="none">
<!--   robots 参数
1.none : 搜索引擎将忽略此网页,等价于noindex,nofollow。
2.noindex : 搜索引擎不索引此网页。
3.nofollow: 搜索引擎不继续通过此网页的链接索引搜索其它的网页。
4.all : 搜索引擎将索引此网页与继续通过此网页的链接索引,等价于index,follow。
5.index : 搜索引擎索引此网页。
6.follow : 搜索引擎继续通过此网页的链接索引搜索其它的网页。 
-->
<meta name="author" content="LzSzs,[email protected]"> <!-- 标注网站作者 -->
<meta name="generator" content="Notepad++"><!-- 标明网页制作软件。 -->
<meta name="copyright" content="LzSzs">
<meta name="revisit-after" content="7 days" ><!--搜索引擎爬虫重访时间-->
<!--  双核浏览器渲染方式
<meta name="renderer" content="webkit"> //默认webkit内核
<meta name="renderer" content="ie-comp"> //默认IE兼容模式
<meta name="renderer" content="ie-stand"> //默认IE标准模式
-->
<!--以下为meta中 http-equiv属性的用法 -->
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"/> <!--指定IE和Chrome使用最新版本渲染当前页面-->
<meta http-equiv="cache-control" content="no-cache">
<!--
1、no-cache: 先发送请求,与服务器确认该资源是否被更改,如果未被更改,则使用缓存。
2、no-store: 不允许缓存,每次都要去服务器上,下载完整的响应。(安全措施)
3、public : 缓存所有响应,但并非必须。因为max-age也可以做到相同效果
4、private : 只为单个用户缓存,因此不允许任何中继进行缓存。(比如说CDN就不允许缓存private的响应)
5、maxage : 表示当前请求开始,该响应在多久内能被缓存和重用,而不去服务器重新请求。例如:max-age=60表示响应可以再缓存和重用 60 秒。
-->
<meta http-equiv="Cache-Control" content="no-siteapp" />  <!-- 禁止百度自动转码 -->
<meta http-equiv="expires" content="Sunday 26 October 2016 01:00 GMT" /><!--用于设定网页的到期时间,过期后网页必须到服务器上重新传输。-->
<meta http-equiv="refresh" content="2;URL=http://www.cnblogs.com/lzszs"> <!--意思是2秒后跳转向我的博客-->
<meta http-equiv="Set-Cookie" content="User=LzSzs; path=/; expires=Sunday, 10-Jan-16 10:00:00 GMT"> 
<!--
说明:如果网页过期。那么这个网页存在本地的cookies也会被自动删除。
-->
<title>标题名</title>
</head>
<body>
<a hrer="http://www.baidu.com">百度</a>
</body>

</html>

猜你喜欢

转载自www.cnblogs.com/lzszs/p/9030029.html