The rel attribute is a small piece of HTML with a surprisingly large role. It describes the relationship between the current document and the resource it links to, and it affects security, SEO, performance and how browsers and search engines treat a link.

In this guide we explain what rel is, where it can be used, how to combine values, the most common values (nofollow, sponsored, ugc, noopener, noreferrer, canonical, alternate and the resource hints preload, prefetch, preconnect and dns-prefetch), what the others mean, how rel relates to SEO, and some practical points for WordPress.

What Does Rel Mean?

“Rel” is short for relationship.

What Is the HTML Rel Attribute?

What Is the HTML Rel Attribute?

An attribute that explains the relationship between the current document and the linked resource, using keywords such as nofollow, canonical or stylesheet.

In Which HTML Tags Is Rel Used?

Mainly the <a>, <link>, <area> and <form> elements.

Using Rel in the A Tag

<a href="https://example.com" rel="nofollow">Example</a>
<link rel="stylesheet" href="style.css">

Can Multiple Rel Values Be Used?

Yes, separated by spaces.

Correct Usage

<a href="https://example.com" target="_blank" rel="noopener noreferrer nofollow">Example</a>

Usage to Avoid

Don’t use commas or repeat meaningless values, and don’t add values that don’t apply to the element.

The Most Used HTML Rel Values

What Is Rel Nofollow?

Indicates that you do not endorse the linked page or don’t wish to pass your association to it. Search engines treat it as a hint.

What Is Rel Sponsored?

Marks links created as a result of advertising, sponsorship, affiliate arrangements or other paid relationships.

What Is Rel UGC?

Marks links inside user-generated content, such as comments and forum posts.

Nofollow, Sponsored and UGC Compared

ValueUse
nofollowGeneral: links you don’t want to endorse
sponsoredPaid or affiliate links
ugcLinks in user-generated content

What Is Rel Noopener?

Prevents a page opened in a new tab from accessing the opening page through window.opener, which is a security protection. Modern browsers apply it by default for target="_blank", but it’s still common to specify it.

What Is Rel Noreferrer?

Prevents the browser from sending referrer information to the linked site (and implies noopener behavior).

Noopener, Noreferrer and Nofollow: What Is the Difference?

noopener and noreferrer are about security and privacy of the browser behavior; nofollow is about how search engines treat the link. They are independent, and can be combined.

  • Safe new-tab use: rel="noopener"
  • No referrer sent: rel="noreferrer"
  • Nofollow and security together: rel="nofollow noopener"

What Is Rel Opener?

A value that allows the opened page to keep access to the opener, rarely needed.

What Is Rel External?

Indicates the link goes to an external site; it has no effect on search engines by itself.

What Is Rel Canonical?

Used in <link> to indicate the preferred URL when similar pages exist. See what is a canonical URL.

Canonical, Nofollow, Noindex and 301: What Is the Difference?

Canonical suggests the preferred version, nofollow is about a link, noindex asks not to index a page, and a 301 redirect moves users and signals permanently to another URL.

What Is Rel Alternate?

Indicates an alternate version of the page.

  • Alternate language use: hreflang links to translations.
  • RSS feed use: points to a feed.

What Is Rel Stylesheet?

Links a CSS file to the page.

What Is Rel Icon?

Links the site icon (favicon).

What Is Rel Preload?

Tells the browser to fetch a critical resource early. Useful for key fonts and styles; overuse can hurt. See Google PageSpeed Insights.

What Is Rel Prefetch?

Hints that a resource may be needed for a later navigation and can be fetched at idle time.

Preload vs. Prefetch

Preload is for resources needed on the current page now; prefetch is for resources likely needed next.

What Is Rel Preconnect?

Opens an early connection to another origin (DNS, TCP and TLS).

What Is Rel DNS-Prefetch?

Resolves a domain name early, a lighter hint than preconnect.

Preconnect vs. DNS-Prefetch

HintWhat it does
dns-prefetchResolves the DNS only
preconnectResolves DNS, connects and negotiates TLS

What Is Rel Modulepreload?

Preloads JavaScript modules.

What Is Rel Manifest?

Links a web app manifest.

What Are Rel Next and Prev?

Describe the next and previous pages in a series. Google no longer uses them for indexing, but they may still be useful for other tools.

What Are Rel Author, License, Help, Bookmark, Tag, Search, Privacy-Policy and Terms-of-Service?

Descriptive values that state, for example, the author page, license, help page, permanent link, tag page, search page and legal pages. They have limited practical effect.

Rel Value Groups

Link-treatment (nofollow, sponsored, ugc), security and privacy (noopener, noreferrer), SEO signals (canonical, alternate), performance hints (preload, prefetch, preconnect, dns-prefetch, modulepreload) and resource links (stylesheet, icon, manifest).

Rel vs. Href, Target and Referrerpolicy

href is the destination, target is where it opens, referrerpolicy controls referrer details, and rel describes the relationship.

The Effect of HTML Rel Attributes on SEO

  • Nofollow, sponsored, ugc: hints on how to treat links; relevant for backlinks and anchor text.
  • Canonical: consolidates duplicates.
  • Alternate: supports language and version signaling.
  • Next and prev: no longer used by Google for indexing.
  • Noopener and noreferrer: security, not ranking.

Is There a Dofollow Rel Value?

No. “Dofollow” is not an HTML value. A normal link without nofollow is followed by default. Adding “dofollow” is unnecessary.

No. Normal editorial links to trusted sources don’t need it. Use nofollow, sponsored or ugc where they apply.

Generally not; internal links help crawling and distribute authority. See on-site SEO optimization.

Rel on WordPress

In WordPress, the editor lets you set links to open in a new tab and mark nofollow or sponsored; plugins can add rel values to links. Check that your theme and plugins don’t add unwanted values.

Practical Checklist

  • Use rel="noopener" on target="_blank" links
  • Mark paid links with sponsored
  • Mark user links with ugc
  • Use canonical correctly on similar pages
  • Keep resource hints to what is truly critical
  • Test the result in a crawl; see technical SEO, what does SEO mean and how SEO work is done

Frequently Asked Questions

What is HTML rel?

An attribute that explains the relationship between the current document and the linked resource.

What does rel stand for?

Rel is the abbreviation of the English word “relationship.”

In which tags is the rel attribute used?

Mainly in the <a>, <link>, <area> and <form> elements.

What is rel nofollow?

A value indicating that the link is not editorially endorsed or that the association is not wanted.

No. The user can click the link normally.

Does nofollow prevent the target page from being indexed?

No. The target page can be discovered through other links or a sitemap.

What is sponsored?

It marks links given as a result of advertising, sponsorship, affiliate or other paid relationships.

What is UGC?

It refers to links in user-generated content.

Are UGC and nofollow used together?

Yes. rel="ugc nofollow" can be used for uncontrolled user links.