HTML <a> relAttribute
Examples
Link using the rel attribute:
<a rel="nofollow" href="http://www.functravel.com/">Cheap Flights</a>
Try it Yourself »
Browser Support
![]()
![]()
![]()
![]()
![]()
All major browsers support the rel attribute.
Note:Although browsers do not use this attribute in any way, search engines can use this attribute to gain more information about the link.
Definition and Usage
The rel attribute of the <a> tag is used to specify the relationship between the current document and the linked document.
The rel attribute can only be used if the href attribute is used.
Differences between HTML 4.01 and HTML5
Some values were removed, and some new values were added.
Syntax
<a rel="value">
Attribute Values
| Value | Description |
|---|---|
| alternate | Alternate versions of the document (for example, print pages, translated pages, or mirrors). |
| stylesheet | External style sheet for the document. |
| start | The first document in a collection. |
| next | The next document in a collection. |
| prev | The previous document in a collection. |
| contents | A table of contents for the document. |
| index | An index for the document. |
| glossary | A glossary or explanation of words used in the document. |
| copyright | A document containing copyright information. |
| chapter | A chapter of the document. |
| section | A section of a document. |
| subsection | A subsection of a document. |
| appendix | An appendix of the document. |
| help | A help document. |
| bookmark | A related document. |
| nofollow | Google uses "nofollow" to specify that the Google search engine should not follow the link. |
| licence | |
| tag | |
| friend |
Other Extensions
HTML <a> Tag