THE WORLD'S LARGEST WEB DEVELOPER SITE

HTML <a> rel Attribute

❮ HTML <a> tag

Example

A link with a rel attribute:

<a rel="nofollow" href="http://www.functravel.com/">Cheap Flights</a>
Try it Yourself »

Definition and Usage

The rel attribute specifies the relationship between the current document and the linked document.

Only used if the href attribute is present.


Browser Support

Attribute
rel Yes Yes Yes Yes Yes

Tip: Search engines can use this attribute to get more information about a link.


Differences Between HTML 4.01 and HTML5

Some values are removed, and some new values are added.


Syntax

<a rel="value">

Attribute Values

Value Description
alternate Provides a link to an alternate representation of the document (i.e. print page, translated or mirror)
author Provides a link to the author of the document
bookmark Permanent URL used for bookmarking
external Indicates that the referenced document is not part of the same site as the current document
help Provides a link to a help document
license Provides a link to licensing information for the document
next Provides a link to the next document in the series
nofollow Links to an unendorsed document, like a paid link.
("nofollow" is used by Google, to specify that the Google search spider should not follow that link)
noreferrer Requires that the browser should not send an HTTP referer header if the user follows the hyperlink
noopener Requires that any browsing context created by following the hyperlink must not have an opener browsing context
prev The previous document in a selection
search Links to a search tool for the document
tag A tag (keyword) for the current document

❮ HTML <a> tag