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
- <>
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
- 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.