1. 您的位置:首页 > 站群资讯 >内容

如何使用各种REL属性-学习微格式

Last week with my post on hCard format I started a good tradition: overviewing microformats in an easy-to-understand way and learning to use them with help of tools. This week I am following up with a detailed look at REL attributes of a link.

REL attributes indicate the relationship of the current resource to the target page (which it links to).

Here’s a quick overview of RE attributes that can be used to describe the link relationships:

REL Attributes

Group*

REL attribute

Meaning / usage

Useful for

Usefulness

Site structure

rel=”home”

Destination of a link is the homepage of the site

Links to the home page (in breadcrumbs, etc)

To help better and easier understand the page structure. Opera browser, for example, recognizes the attribute and shows the page in the nav toolbar:

rel=’tag‘

To show that the destination of the hyperlink is an author-designated "tag" (or keyword/subject) for the current page (used to markup URLs of tags and categories).

Links to tags and categories of the blog.

The attribute helps bots to easier understand the site structure as well as identify its main topics.

Link weight

rel=”directory”

To indicate that the destination of the hyperlink is a directory listing containing an entry for the current page.

The attribute is specifically designed for making links to any directory listing explicit.

rel=”nofollow”*

To "indicate that the destination of that hyperlink

SHOULD NOT

be given any additional weight or ranking by user agents which perform link ****ysis upon web pages (e.g. search engines)"

"Typical use cases include links created by 3rd party commenters on blogs, or links the author wishes to point toseo千牛帮, but avoid endorsing. For more specific endorsement (or lack thereof) semantics, see VoteLinks."

Content type

rel="license"

By adding rel="license" to a hyperlink, a page indicates that the destination of that hyperlink is a license for the current page.

To indicate content license (while the link itself shows where to access that license).

站群 and Yahoo! offer searches that filter based on rel-licensed content

rel=”enclosure”

To indicate that the destination of that hyperlink is intended to be downloaded and cached

rel=”payment”

To indicate that the destination of that hyperlink provides a way to show or give support for the current page

"One of the goals with this microformat is to give content aggregators such as RSS readers a way to extract these support links and give them special attention (such as displaying a standard button along with the content)."

XFN 1.1 profile

rel="me"

To interlink two pages about one person

Links to personal blogs, pages, social media profiles, etc

Useful for online identity consolidation, to help 站群 and other web services to identify your brand / business presence and representatives

More possible attributes to represent human relationships using hyperlinks (XFN): rel="contact", rel="friend", etc

To aggregate human relationships through the web

* This one was invented by me to better organize the table.

**Note 1: Too much has been said about this one already, so I am just quoting the official wiki.

Note 1: Multiple values may be used: (e.g.

Note 2:

Italics

has been used to mark

a draft microformat specification.

REL Attribute Validator

REL-lint is a bookmarklet tool for checking values assigned to the rel attribute of links.

The tool checks any rel values against a known list and flags any not recognized.

Note: The tool doesn’t show what is wrong, just what needs checking.

More reading and useful resources:

Usage of the Rel Attribute in Microformats (licence, tag, nofollow)四川seo: save this as a sample usage of the rel attribute.

Rel attribute FAQ

本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。如若转载,请注明出处:http://www.botadmin.cn/changjianwenti/1016.html