Dofactory.com
Dofactory.com
Earn income with your HTML skills
Sign up and we'll send you the best freelance opportunities straight to your inbox.
We're building the largest freelancing marketplace for people like you.
By adding your name & email you agree to our terms, privacy and cookie policies.

HTML <a> rel Attribute

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.

Example

#

A rel attribute on an <a> element. The link is to an external page that is not endorsed by the current site.

Go to Google
Go to <a rel="external nofollow" target="_blank"
         href="https://google.com">Google</a>

Using rel

The rel attribute defines the relationship between the current page and the linked page or resource.

The rel attribute requires that href has a value.


Syntax

<tagname rel="nofollow | noopener | noreferrer | 
              external | author | help |  license | 
              prev | next |  bookmark | search | 
              alternate | tag" />

Values

#

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.

Browser support

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

You may also like

 Back to <a>

Last updated on Sep 30, 2023

Earn income with your HTML skills
Sign up and we'll send you the best freelance opportunities straight to your inbox.
We're building the largest freelancing marketplace for people like you.
By adding your name & email you agree to our terms, privacy and cookie policies.

Guides