<meta name="keywords" contect=""> //向搜索引擎说明你的网页的关键词
<meta name="description" contect=""> //告诉搜索引擎你的站点的主要内容
<meta name="author" contect="你的姓名"> //告诉搜索引擎你的站点的制作的作者
<meta http-equiv="Content-Type" contect="text/html";charset=utf-8"> //指定字符集
<meta http-equiv="refresh" contect="n;url="> //定时让网页在指定的时间 n 内跳转
<meta http-equiv=’refresh’contect=”n;url”>
<meta http-equiv="expires" contect="Mon,12 May 2001 00:20:00 GMT"> // 可以用于设定网页的到期时间,一旦过期则必须到服务器上重新调用。需要注意的是必须使用 GMT 时间格式
<meta http-equiv="pragma" contect="no-cache"> //禁用缓存
<meta http-equiv="set-cookie" contect="Mon,12 May 2001 00:20:00 GMT"> //cookie 设定,如果网页过期,存盘的 cookie 将被删除。需要注意的也是必须使用 GMT 时间格式
meta 标签的使用方法
最新推荐文章于 2023-01-03 15:49:46 发布