码迷,mamicode.com
首页 > Web开发 > 详细

Meta标签

时间:2017-07-06 11:24:16      阅读:165      评论:0      收藏:0      [点我收藏+]

标签:属性   简体   需要   content   网站   set   模拟   客户端   网页   

描述网页文档的属性:http-equiv和name

http-equiv:模拟的是htp文件的头信息,当内容从服务端发送到客户端,告诉浏览器如何正确的显示信息。

1、字符集

  <meta http-equiv="content-type" content="text/html;charset=utf-8/"/>多国语言

  <meta http-equiv="content-type" content="text/html;charset=gbk/"/>国标码

  <meta http-equiv="content-type" content="text/html;charset=gb2312/"/>简体中文

2、网页自动刷新

  <meta http-equiv="refresh" content="4"/>间隔4秒钟网页刷新一次

  <meta http-equiv="refresh" content="8;http://www.baidu.com"/>等待8秒钟跳转到百度页面

name可以设置网页关键字描述信息等

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

  <meta name="description" content="描述信息"/>

  便于搜索引擎需要

  <meta name="author" content="作者"/>网站作者

Meta标签

标签:属性   简体   需要   content   网站   set   模拟   客户端   网页   

原文地址:http://www.cnblogs.com/xlbgogo/p/7125088.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!