meta的使用

一、关键词

1 <meta name="keywords" content="value" />

二、跳转页面

1 <meta http-equiv="refresh" content="0; url=http://www.xxx.com/" />

content里的参数为"X秒后跳转; url=链接"

三、规定文档字符集

1 <meta http-equiv="countent-type" content="text/html;charset=utf-8" /><!-- html4.01 -->
2 <meta charset="utf-8" /><!-- html5 -->

在HTML5中meta多了个charset属性,直接就可以定义字符编码。

posted on 2017-04-05 22:36  B_t  阅读(168)  评论(0)    收藏  举报

导航