简单记一下meta标签的几种用法
1、可以设置编码
例如:<meta charset="utf-8"/>
2、可以设置网页关键字
name为keywords content为关键字的内容,以逗号分割
例如:<meta name="keywords" content="html,css,javascript,java,php"/>
3、可以用来指定网页的描述,搜索引擎在检索页面时,会同时检索页面中的关键字和描述,但是这两个值不会影响页面在搜索引擎中的排名
name为description content指定内容
例如:<meta name="description" content="练习meta标签,可以用来指定网页的描述"/>
4、可以使用meta标签多页面的重定向
<meta http-equiv="refresh" content="秒数;跳转地址"/>
例如:<meta http-equiv="refresh" content="3;http://www.baidu.com"/> 在3秒之后跳转到百度