What does rel attribute mean?
The rel attribute refers to the relationship between the current page and the page.
<A> the optional properties of the label, rel and rev, respectively indicate the formal relationship and direction between the source document and the target document. 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 the <a> label at the same time.
The code is as follows: |
Copy code |
1. <a href = "xxx. php? Page = 2 "rel =" next "rev =" prev "> <>
|
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:
The code is as follows: |
Copy code |
1. <a href = 'http: // www.111cn.net 'rel = 'friend'> Old blog </a>
|
This rel attribute is actually designed specifically for seo/seo.html "target =" _ blank "> Search Engines. It is known that Baidu currently supports: rel = 'noflow' attribute, the rational use of this tag will greatly improve 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 in html format. In the social network era, Weibo http://www.111cn.net/wechat is rampant. Compared with html, the rel attribute of a tag has the XFN specification.