Parse the role of rel = "nofollow" in HTML and use of the rel attribute _ HTML/Xhtml _ webpage Creation

Source: Internet
Author: User
This article mainly introduces the role of rel "nofollow" in HTML and the use of rel attributes. rel "noflow is used to tell crawlers not to track this link, which is often used in SEO, if you need the link, you can add the rel = "nofollow" attribute, indicating that the search engine does not need to trace the connection and therefore does not transmit the weight. careful webmasters may find that this attribute is added to the links of many blogs, so as to avoid dilution of the weight of their websites. the rel attribute refers to the relationship between the current page and the page. the rev attribute specifies the relationship between the target document and the source document. Baidu currently supports the following attributes: rel = 'noflow'. The rational use of this tag will greatly improve the website.

The webmaster may know that if the rel = "nofollow" attribute is added to a connection, it indicates that the search engine does not need to trace the connection and therefore does not transmit the weight. careful webmasters may find that this attribute is added to the links of many blogs, so as to avoid dilution of the weight of their websites.

What does rel attribute mean?

The rel attribute refers to the relationship between the current page and the page.

The optional properties rel and rev of the label indicate the formal relationship and direction between the source document and the target document, respectively. The rel attribute specifies the relationship between the source document and the target document, while the rev attribute specifies the relationship from the target document to the source document. These two attributes can be used in both labels.

Copy XML/HTML Code to clipboard

  1. <>

Multiple values of the rel or rev attribute are separated by spaces.

Rel attribute usage

This attribute is usually used in: link tag/a tag/meta tag. Example:

Copy XML/HTML Code to clipboard

  1. Foot home

This rel attribute is actually designed specifically for search engines. It is known that Baidu currently supports the rel = "nofollow" attribute, and the rational use of this tag will greatly change the website.

Rel Attribute Value

Value Description
Alternate Optional document versions (such as print pages, translation pages, or images ).
Stylesheet The external style table of the document.
Start The first document in the set.
Next The next document in the set.
Prev The previous document in the collection.
Contents Document directory.
Index Document index.
Glossary Glossary or interpretation of words used in the document.
Copyright A document that contains copyright information.
Chapter The chapter of the document.
Section Document section.
Subsection The child section of the document.
Appendix Document appendix.
Help Help documentation.
Bookmark Related documents.
Nofollow Google uses "nofollow" to specify that Google search engines do not track links.
Licence
Tag
Friend

After learning about the above rel = "" these attributes, we only need to set the connection tag according to the corresponding attributes when designing the webpage, which will be of great help to our website optimization.

The above rel attributes are for the html format. In the social network era, Weibo/is rampant. Compared with html, the rel attribute of tag a has the XFN specification, which will not be discussed here.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.