003-常用的Meta标签写法和作用

时间:2023-09-02 14:53:20

页面关键词
<meta name="keywords" content="your,tags"/>

页面描述
<meta name="description" content="150words"/>

搜索引擎索引方式
<meta name="robots" content="index,follow"/>
<!--
all:文件将被检索,且页面上的链接可以被查询;
none:文件将不被检索,且页面上的链接不可以被查询;
index:文件将被检索;
follow:页面上的链接可以被查询;
noindex:文件将不被检索;
nofollow:页面上的链接不可以被查询。
-->

页面重定向和刷新
<meta http-equiv="refresh" content="0;url="/>

禁止浏览器从本地计算机的缓存中访问页面内容
<meta http-equiv="Pragma" content="no-cache"/>

限制所有的搜索引擎建立你的网页快照
<meta name="robots" content="norchive"/>