meta标签的一些用法

来源:互联网 发布:章台之柳 知乎 编辑:程序博客网 时间:2024/05/16 11:43
<!doctype html>
<html>


<head>


<meta charset="utf-8" />
<title>标题</title>



<!--
使用mate标签用来设置网页的关键字
-->
<meta name="keywords" content="HTML,Javascript,Java" />


<!--
还可以用来指定网页的描述
搜索引擎在检索页面时,会同时检索页面中的关键字和描述,但这2个值不会影响在搜索引擎中的排名
-->
<meta name="description" content="发布h5和js等前端相关信息" />

<!--
使用meta可以用来做请求的定向
-->
<meta http-equiv="refresh" content="5;url=http://www.baidu.com" />

</head>



<h1>5秒以后跳转页面</h1>


<body>



</body>
</html>
原创粉丝点击