HTML DOM rel属性
The rel property sets or returns the relationship to a forward link.
rel属性可用来设置或返回当前文档与前往连接的关系。
The rel and rev properties work together.
rel和rev属性得一起工作
The rel (relationship) property specifies a relationship to the target. The rev (reverse) property specifies a reverse link from the target document to the current document.
rel属性指定目标关系。rev属性指定反向目标关系
These properties are used by search engines to provide a linked navigation menu.
这些属性被搜索用来提供被连接的导航菜单
Syntax
语法
anchorObject.rel=relationship
Both properties can have one of the following values:
这两个属性可在下面这些值里拥有其中的一个:
Value
值
Description
描述
appendix
Link to the appendix page of a document
连接到文档的附录页
alternate
Link to an alternative source
连接到其它来源
bookmark
Link to a bookmark. Often used for "permalink" in web blogs
连接到书签。一些blog经常用到的。
chapter
Link to a chapter from the current documents
连接到当前文档的标题
contents
Link to the table of contents in the current document
连接到当前文档的表格内容
copyright
Link to copyright or policy page of the current document
连接到当前文档页著作权或政策部分
glossary
Link to glossary page of the document
连接到当前文档的词汇页
index
Link to the index page of the current document
连接到当前文档的索引页
next
Link to next page from the current document
连接到当前文档的下一页
prev
Link to the previous page from the current document
连接到当前文档的前一页
section
Link to a section in a list of documents
连接到文档清单列表
start
Link to the first page of the current documents. Used by search engines to show the first page
连接到当前文档的第一张页面。
subsection
Link to a sub-section in a list of current documents. ( Note that a section can have multiple sub-sections)
连接到当前文档的副清单列表。
HTML DOM rev属性
The rev property sets or returns the reverse relationship of a link.
rev属性可设置或返回反向连接关系
The rel and rev properties work together.
rel和rev属性得一起工作
The rel (relationship) property specifies a relationship to the target. The rev (reverse) property specifies a reverse link from the target document to the current document.
rel属性指定目标关系。rev属性指定反向目标关系
These properties are used by search engines to provide a linked navigation menu.
这些属性被搜索用来提供被连接的导航菜单
Syntax
语法
anchorObject.rev=relationship
Both properties can have one of the following values:
这两个属性可在下面这些值里拥有其中的一个:
Value
值
Description
描述
appendix
Link to the appendix page of a document
连接到文档的附录页
alternate
Link to an alternative source
连接到其它来源
bookmark
Link to a bookmark. Often used for "permalink" in web blogs
连接到书签。一些blog经常用到的。
chapter
Link to a chapter from the current documents
连接到当前文档的标题
contents
Link to the table of contents in the current document
连接到当前文档的表格内容
copyright
Link to copyright or policy page of the current document
连接到当前文档页著作权或政策部分
glossary
Link to glossary page of the document
连接到当前文档的词汇页
index
Link to the index page of the current document
连接到当前文档的索引页
next
Link to next page from the current document
连接到当前文档的下一页
prev
Link to the previous page from the current document
连接到当前文档的前一页
section
Link to a section in a list of documents
连接到文档清单列表
start
Link to the first page of the current documents. Used by search engines to show the first page
连接到当前文档的第一张页面。
subsection
Link to a sub-section in a list of current documents. ( Note that a section can have multiple sub-sections)
连接到当前文档的副清单列表。
附:
Alternate — 定义交替出现的链接
Stylesheet — 定义一个外部加载的样式表
Start — 通知搜索引擎,文档的开始
Next — 记录文档的下一页.(浏览器可以提前加载此页)
Prev — 记录文档的上一页.(定义浏览器的后退键)
Contents
Index — 当前文档的索引
Glossary — 词汇
Copyright — 当前文档的版权
Chapter — 当前文档的章节
Section — 作为文档的一部分
Subsection — 作为文档的一小部分
Appendix — 定义文档的附加信息
Help — 链接帮助信息
Bookmark — 书签