meta设置编码、关键字、描述、作者、refresh

 HTML5使用的格式(推荐)

<meta charset="UTF-8">

HTML4使用的格式 

<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">

关键字

说明:keywords用来告诉搜索引擎你网页的关键字是什么。

<meta name="keywords" content="关键字,keywords"/>

描述

说明:description用来告诉搜索引擎你的网站主要内容。

<meta name="description"content="这是一个描述。">

作者

说明:标注网页的作者

<meta name="author"content="root,[email protected]">

refresh

说明:自动刷新并指向新页面。

<meta http-equiv="refresh" content="2;URL=http://www.baidu.com">--2秒后刷新

猜你喜欢

转载自blog.csdn.net/springlan/article/details/106434164