HTML <a> rel attribute
Definition and usage
rel
The attribute specifies the relationship between the current document and the linked document.
Only if href attribute Used at
Tip:Search engines can use this attribute to obtain more information about the link!
Example
Links with the rel attribute set:
<a rel="nofollow" href="https://www.ch.com/">cheap flights</a>
Syntax
<a rel="value">
Attribute value
Value | Description |
---|---|
alternate | Provide a link to the document's substitute representation (such as a print page, translation, or mirror). |
author | Provide a link to the document author. |
bookmark | Permanent URL for bookmarks. |
external | Indicates that the referenced document does not belong to the same site as the current document. |
help | Provide a link to the help document. |
license | Provide a link to the document license information. |
next | Provide a link to the next document in the series. |
nofollow |
Links to unapproved documents, such as paid links. (Google uses 'nofollow' to specify that Google's search spiders should not follow this link). |
noopener | Any browsing context created through a hyperlink must not have an opener browsing context. |
noreferrer | Make the referrer unknown. When the user clicks on the hyperlink, the referrer header will not be included. |
prev | The previous document selected. |
search | Links to document search tools. |
tag | Tags (keywords) of the current document. |
Browser Support
Chrome | Edge | Firefox | Safari | Opera |
---|---|---|---|---|
Chrome | Edge | Firefox | Safari | Opera |
Support | Support | Support | Support | Support |