<![CDATA[Stri's Blog]]> http://www.striblog.com/ 2010-9-7 1:10:49 Blog zh-cn Copyright (C),2009, Stri.PC <![CDATA[网页head标签里的一些知识]]> http://www.striblog.com/?p=34

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="zh-cn" lang="zh-cn" xmlns:qz="http://qzone.qq.com/">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<meta http-equiv="Content-Language" content="utf-8"/>
<meta name="author" content="ㄑ可乐ㄑㄑ"/>
<meta name="Copyright" content="Tencent"/>
<meta name="Description" content="...."/>
<meta name="Keywords" content="丶.8o23.乐,ㄑ可乐ㄑㄑ,Qzone,QQ空间,Blog,博客,网络日志,播客,腾讯,QQ,Tencent"/>
<meta name="robots" content="all"/>
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7"/>
<title>丶.8o23.乐 [http://312709349.qzone.qq.com]</title>
<script type="text/javascript">document.domain="qq.com";var _s_=new Date();</script>
<base href="http://cnc.imgcache.qq.com/"></base>
<link rel="alternate" type="application/rss+xml" title="RSS news feed" href="http://feeds.qzone.qq.com/cgi-bin/cgi_rss_out?uin=312709349"/>
<link rel="Shortcut Icon" href="http://cnc.imgcache.qq.com/qzonestyle/qzone_client_v5/img/favicon.ico" type="image/x-icon"/>
<link rel="archives" title="丶.8o23.乐" href="http://b.cnc.qzone.qq.com/cgi-bin/blognew/simpleqzone_blog_title?hostuin=312709349"/>

head标签里的Meta和link了几个不知道.一个一个看:
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>

这个是定义当前文档的编码和类型,utf-8和text/html
<meta http-equiv="Content-Language" content="utf-8"/>

这个是定义当前内容的语言.
<meta name="author" content="ㄑ可乐ㄑㄑ"/>

网页的author(作者)
<meta name="Copyright" content="Tencent"/>

网页的Copyright(版权)
<meta name="Description" content="...."/>

网页内容的简短说明,这个从SEO上看文字最好控制在100左右
<meta name="Keywords" content="丶.8o23.乐,ㄑ可乐ㄑㄑ,Qzone,QQ空间,Blog,博客,网络日志,播客,腾讯,QQ,Tencent"/>

网页的关键字
<meta name="robots" content="all"/>

- 定义网页搜索引擎索引方式
此处的all是指搜索引擎将索引此网页与继续通过此网页的链接索引
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7"/>

解决IE8的问题,让IE8以IE7模式游览
<link rel="alternate" type="application/rss+xml" title="RSS news feed" href="http://feeds.qzone.qq.com/cgi-bin/cgi_rss_out?uin=312709349"/>

Rss订阅.可以使网页获取XML.
<link rel="archives" title="丶.8o23.乐" href="http://b.cnc.qzone.qq.com/cgi-bin/blognew/simpleqzone_blog_title?hostuin=312709349"/>

网页的归档信息

另外还有一些不常见到的

<meta http-equiv="MSThemeCompatible" Content="Yes" />

--:是否在IE中 开/关系统的主题
<meta http-equiv="Content-Script-Type" Content="text/javascript" />

指明页面中脚本的类型
<meta http-equiv="Refresh" Content="5; Url=http://www.14pc.com/" />

让网页在多少秒后刷新自己或转到的页面
<meta name="google-site-verification" content="fAqQluW4K2gCz2kY9R2LkkVbBeNvSZsOiuzRLEo9H10" />

google验证网页时用到的
<meta name="date" content="2010-01-01T20:50:30+00:00" />

定义网页的的生成时间,格式为GMT]]>
http://www.striblog.com/?p=34#comment 638 Sat, 02 Jan 2010 16:49:04 +0800 http://www.striblog.com/?p=34