rel属性通常出现在a,link标签中,rel是relationship的英文缩写。
2009-06-02 11:46:54
Sets or retrieves the relationship between the object and the destination of the link.
Syntax
HTML
Scripting object.rel [ = sRelation ]
The property is read/write. The property has no default value.
值:
alternate -- 定义交替出现的链接
appendix -- 定义文档的附加信息
bookmark -- 书签
chapter -- 当前文档的章节
contents -- 内容
copyright -- 当前文档的版权
glossary -- 词汇
help -- 链接帮助信息
index -- 当前文档的索引
next -- 记录文档的下一页.(浏览器可以提前加载此页)
nofollow -- 不被用于计算PageRank
prev -- 记录文档的上一页.(定义浏览器的后退键)
section -- 作为文档的一部分
start -- 通知搜索引擎,文档的开始
stylesheet -- 定义一个外部加载的样式表
subsection -- 作为文档的一小部分
String that specifies or receives one or more of the following space delimited values in any order:Alternate Substitute version of the file that contains the link.
Appendix - Page that is an appendix for the set of pages.
Bookmark - Bookmark.
Chapter - Page that is a chapter for a set of pages.
Contents - Table of contents document.
Copyright - Copyright notice for the current page.
Glossary - Glossary for the current page.
Help - Help document.
Index - Index document for the current page.
Next - Next document in a sequence.
Offline - href that contains a path to the CDF file to be used for an offline favorite.
Prev - Previous document in a sequence.
Section - Page that is a section for a set of pages.
Shortcut Icon - href that contains a path to an icon file to be used for the favorite or link.
Start - First document of a set.
Stylesheet - Style sheet.
Subsection - Page that is a subsection for a set of pages.
还有几个在上面没出现的,比如
rel="alternate" rss用
rel='archives' 归档
rel="EditURI" 离线编辑器
rel="search" 加上一个快捷搜索
我在首页里加上了
<link rel="archives" title="May 2009" href="http://www.seo-space.net/blog/seo-blog-list-2009-05.html" />
<link rel="archives" title="June 2009" href="http://www.seo-space.net/blog/seo-blog-list-2009-06.html" />
来提供一个归档信息