Html rel="bookmark" 链接属性是什么意思?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/2803505/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-29 03:01:03  来源:igfitidea点击:

What is meant by the rel="bookmark" link attribute?

htmlseoanchor

提问by Prabhu M

What is the purpose of the rel="bookmark"attribute in <a>tags? For example:

标签中rel="bookmark"属性的用途是什么<a>?例如:

<a href="http://stackoverflow.com/questions/ask" rel="bookmark">Click Here</a>

Does it serve any SEO- or SEM-related purpose?

它是否用于任何与 SEO 或 SEM 相关的目的?

回答by geoff

This has no SEO value or purpose. I believe the rel=bookmark tag was intended to mark permalinksbut it never really gained traction

这没有 SEO 价值或目的。我相信 rel=bookmark 标签是为了标记永久链接,但它从未真正受到关注

回答by user2472003

An important use of the LINK element is to define a toolbar of navigation buttons or an equivalent mechanism such as menu items.

LINK 元素的一个重要用途是定义导航按钮工具栏或等效机制,例如菜单项。

LINK relationship values reserved for toolbars are:

为工具栏保留的 LINK 关系值为:

REL=Home The link references a home page or the top of some hierarchy.

REL=Home 链接引用主页或某个层次结构的顶部。

REL=ToC The link references a document serving as a table of contents.

REL=ToC 该链接引用用作目录的文档。

REL=Index The link references a document providing an index for the current document.

REL=Index 链接引用为当前文档提供索引的文档。

REL=Glossary The link references a document providing a glossary of terms that pertain to the current document.

REL=Glossary 该链接引用了一个文档,该文档提供了与当前文档相关的术语表。

REL=Copyright The link references a copyright statement for the current document.

REL=Copyright 该链接引用了当前文档的版权声明。

REL=Up When the document forms part of a hierarchy, this link references the immediate parent of the current document.

REL=Up 当文档构成层次结构的一部分时,此链接引用当前文档的直接父级。

REL=Next The link references the next document to visit in a guided tour.

REL=Next 该链接引用在导览中要访问的下一个文档。

REL=Previous The link references the previous document in a guided tour.

REL=Previous 该链接引用了导览中的上一个文档。

REL=Help The link references a document offering help, e.g. describing the wider context and offering further links to relevant documents. This is aimed at reorienting users who have lost their way.

REL=Help 该链接引用提供帮助的文档,例如描述更广泛的上下文并提供指向相关文档的进一步链接。这旨在重新定位迷路的用户。

REL=Bookmark Bookmarks are used to provide direct links to key entry points into an extended document. The TITLE attribute may be used to label the bookmark. Several bookmarks may be defined in each document, and provide a means for orienting users in extended documents.

REL=Bookmark 书签用于提供指向扩展文档的关键入口点的直接链接。TITLE 属性可用于标记书签。可以在每个文档中定义多个书签,并提供一种在扩展文档中定位用户的方法。

From: http://www.w3.org/MarkUp/html3/dochead.html

来自:http: //www.w3.org/MarkUp/html3/dochead.html

回答by Arthur Araújo

The attribute "rel" means relationship. It's a microformats. The HTML4 spec describes a bookmark as "a link to a key entry point within an extended document". By convention (citation needed), this entry point also captures the notion of a "permalink". Exemple:

属性“rel”表示关系。这是一个微格式。HTML4 规范将书签描述为“指向扩展文档中关键入口点的链接”。按照惯例(需要引用),这个入口点也包含了“永久链接”的概念。例子:

<a href="archive/entry.html" rel="bookmark">A Document Entry</a>

Another exemple of rel attribute for tags:

标签的 rel 属性的另一个例子:

<a href="http://technorati.com/tag/tech" rel="tag">tech</a>

http://microformats.org/wiki/rel-bookmark#rel.3D.22bookmark.22

http://microformats.org/wiki/rel-bookmark#rel.3D.22bookmark.22