The rel attribute on an <a> element defines the relationship between the current page and the linked page.
Possible values include: nofollow
, noopener
, noreferrer
and others.
Multiple relationships can be defined by space-separating the values.
A rel attribute on an <a> element. The link is to an external page that is not endorsed by the current site.
Go to <a rel="external nofollow" target="_blank"
href="https://google.com">Google</a>
The rel attribute defines the relationship between the current page and the linked page or resource.
<tagname rel="nofollow | noopener | noreferrer | external | author | help | license | prev | next | bookmark | search | alternate | tag" />
Click the values for more details.
Value | Description |
---|---|
nofollow | Specifies the link is not endorsed or is not controlled by the current page's author. Search engines often ignore links flagged as nofollow. |
noopener | No context or information about the current page is sent to the linked page. Used for untrusted links to avoid tampering with the current page. |
noreferrer | Prevents the browser from sending referrer data about the current page. |
external | Indicates the link is to a page outside the current site (different domain). Applies to: a, area, form |
author | Specifies the link it to a page about the current page's author. |
help | Specifies the link is to a help page. |
license | Specifies the link is to a page with licensing information. |
prev | Specifies the previous page in a series of pages. |
next | Specifies the next page in a series of pages. |
bookmark | Indicates the link is a permalink that can be used for bookmarking. |
search | Specifies the link is to a search page for the current page. |
alternate | Specifies the link is to an alternative version of the page. For example, a different device type, or other language version. |
tag | Specifies a tag keyword for the current page, i.e. a word that identifies the current page. |
Here is when rel support started for each browser:
Chrome
|
1.0 | Sep 2008 |
Firefox
|
1.0 | Sep 2002 |
IE/Edge
|
1.0 | Aug 1995 |
Opera
|
1.0 | Jan 2006 |
Safari
|
1.0 | Jan 2003 |
Back to <a>