Link attributes

Nofollow Links: The HTML of a Link, the Three rel Values, and Why Google Treats Them as Hints

A link is one line of HTML with a few moving parts, and most owners never look at it. Then an agency report mentions dofollow ratios, a sponsor asks for a link, and suddenly the attribute nobody noticed is a line item. Here is what each part does, and what Google actually does with nofollow.

October 29, 2026 · 11 min read

A hand with a red string tied in a bow around the index finger.

The short answer

A nofollow link is an HTML link carrying rel="nofollow", which asks Google not to associate your site with the linked page or crawl it through that link. Google's documentation adds rel="sponsored" for paid links and rel="ugc" for comments and forum posts. Since 2019 Google treats all three as hints, not commands, so nofollow does not keep a page out of the index.

On this page
  1. One line of HTML, taken apart piece by piece
  2. From comment-spam patch to hint: how nofollow changed in 2019
  3. What a hint cannot do: keep a page out of Google
  4. Sponsored, ugc or nofollow: choose by asking why the link exists
  5. Six ways sites get the attribute wrong
  6. Checking how a link is marked, on your site and on theirs
  7. What a nofollowed link is still worth

One line of HTML, taken apart piece by piece

Search for "HTML code for a link" and you get the short version: an a element with an href. That is enough for a browser. Search engines read more of it. Here is a full link of the kind a roofer might put in a blog post: <a href="https://example.com/storm-damage-guide" rel="nofollow" target="_blank">the county's storm damage guide</a>. Every part of that line is read by someone: the browser, Google, a screen reader, or the analytics on the other end.

The parts of an HTML link and who reads each one
PartWhat it doesWhat Google does with it
<a>The anchor element; it makes the text clickableGoogle says it can generally crawl a link only when it is an a element with an href
href="..."The address the link points toMust resolve to a real web address; Google lists an href of javascript:goTo('products') as not recommended
Anchor textThe words between the opening and closing tagsRead to learn what the target page is about; Google wants it descriptive, concise and relevant to both pages
rel="..."Describes the relationship to the linked pagenofollow, sponsored and ugc are hints about how to treat the link
target="_blank"Opens the page in a new tab or windowNothing for ranking; it is browser behavior
title="..."Advisory text shown on hoverA fallback for anchor text if the a element is empty
<img alt="..."> inside the linkAn image used as the clickable partGoogle uses the alt text as the anchor text

Two details save more trouble than any attribute. First, a menu item built from a span or a button with a click handler is not a link to Google, which is why Google's link documentation lists those patterns as not recommended. Our JavaScript SEO guide covers how scripted sites lose pages that way. Second, a link whose visible text says "click here" tells Google nothing about the page behind it. The rest of this guide is about the rel attribute, because that is where the money questions sit.

From comment-spam patch to hint: how nofollow changed in 2019

Nofollow started as a patch. Google introduced it in January 2005 to take the profit out of comment spam, back when blog comment sections were a free billboard for anyone with a script. It soon became Google's recommended way to flag advertising and sponsored links too. For fourteen years the rule was simple: Google did not count a nofollowed link as a ranking signal.

On September 10, 2019, Google's Search Central blog announced the change in a post called Evolving "nofollow". It added two values, sponsored and ugc, and said all three would now be treated as hints about which links to consider or exclude within Search. For ranking the change applied at once. For crawling and indexing, nofollow became a hint on March 1, 2020.

Google's stated reason is that links carry information it did not want to throw away. Anchor text can describe the page it points to, and seeing every link helps Google spot unnatural patterns. The same post said Google expected the change to make little difference in practice, because it would generally still not use such links for ranking. So a nofollowed link is not a secret vote. It is a link Google may learn from, and usually will not credit.

Nofollow is a request with a reason attached. Google reads both and decides.

What a hint cannot do: keep a page out of Google

The 2019 change broke one old habit. Some sites had nofollowed every link to a thank-you page, a staging copy or a members area, and assumed that hid the page. Google's documentation on qualifying outbound links says linked pages may still be found through sitemaps or links from other sites, and points to stronger tools for each job.

Nofollow will not reliably

  • Stop Google crawling a page another site links to
  • Keep a page out of the index
  • Hide a login, cart or staging URL
  • Make one internal page rank instead of another

Use this instead

  • A robots.txt disallow rule, to stop Google fetching a URL on your own site
  • A noindex rule on a page Google is allowed to crawl, to keep it out of results
  • A password or login, for anything private
  • Better internal links and a canonical tag, for choosing between pages

The two tools in the right column conflict if you combine them carelessly: a page blocked in robots.txt is never fetched, so Google never sees its noindex. Our guide to robots.txt blocking Google covers the first, and meta tags covers the robots tag. That tag has a nofollow of its own. Written as <meta name="robots" content="nofollow">, it applies to every link on the page, and the same rule can be sent as an X-Robots-Tag HTTP header. The rel attribute marks one link; the meta tag marks them all.

Google defines each value by the reason behind the link, not by where it sits on the page. Ask how the link came to exist and the value usually picks itself. A plain link with no rel attribute is the default, and it is correct for most links you place by choice.

rel="sponsored": someone paid

For ads and paid placements. Google says sponsored is preferred, and nofollow, the older recommendation, is still acceptable. Google's July 2021 post says affiliate links are fine for monetizing a site and asks affiliates to mark them sponsored. Sponsorship logos count too.

rel="ugc": a visitor wrote it

For links in comments, forum posts and anything else visitors publish on your site. Google allows a site to drop the attribute for members who have contributed high-quality content consistently over time, a reward for trusted regulars.

rel="nofollow": you do not vouch for it

For links where neither value fits and you do not want your site associated with the page. Google's example: you are writing a rebuttal to an article and do not want to lend it your reputation.

No attribute: you chose it

Citing a source, recommending a supplier, linking a partner you trust. Google says linking out can help establish trustworthiness, and asks you to use nofollow only for sources you do not trust.

Values combine. Google accepts a space or comma separated list, such as rel="nofollow ugc", and its 2019 post suggests that pairing because some services do not recognize the newer values. WordPress has done exactly that since version 5.3: its core announcement says comment links and comment author URLs get rel="nofollow ugc" by default. Guest posts have their own wrinkles, covered in guest blogging, and paid placements are the subject of buying backlinks.

Six ways sites get the attribute wrong

  • Nofollowing every outbound link. A single theme setting or link plugin can stamp it on every external link. Google says to use nofollow only when you do not trust the source, not for every external link on your site. A cited source deserves a plain link.
  • Leaving paid links unmarked. Google's 2019 FAQ says there is no wrong attribute except with sponsored links: an ad left unflagged risks a link scheme action, while an ordinary link marked sponsored by mistake at most loses its credit.
  • Nofollowing internal links to steer ranking. Old advice said to nofollow links to the contact page or the privacy policy so the important pages got more credit. For pages within your own site, Google points to robots.txt rather than nofollow when you want a URL left alone, and good internal linking does the rest.
  • Inventing a dofollow value. No rel="dofollow" appears among the values in Google's documentation. A followed link is simply a link without nofollow, sponsored or ugc. Anyone selling "dofollow links" is selling the absence of a label, which tells you what the label would have said.
  • Confusing noopener and noreferrer with nofollow. Those are browser values. MDN, the developer reference for web standards, says noopener stops the new page from controlling the one that opened it, and noreferrer removes the Referer header. Neither is a search instruction, but noreferrer can make your visits to a partner look like direct traffic in their analytics.
  • Marking store filters one link at a time. Google's guide to faceted navigation says nofollow on filter links helps only if every link to those URLs carries it, and calls robots.txt the more effective long-term control.

On target="_blank": MDN notes that in newer browsers it already behaves as if rel="noopener" were set, so the extra value is a belt for older browsers. It also recommends telling readers when a link opens a new tab, because an unexpected tab confuses people using screen readers.

You cannot see rel in the page as a visitor sees it, and Search Console's Links report does not show it either. Google says so in the report's help. Checking takes a browser and five minutes.

  1. 1

    Inspect the link itself

    Right-click the link in Chrome, Edge or Firefox and choose Inspect. The developer tools highlight the a element and show every attribute on it, including rel.

  2. 2

    Search the page source

    Open the page source and search for rel=. On a page with many links this shows quickly whether a plugin is stamping nofollow on everything.

  3. 3

    Check the rendered version

    If links are added by scripts, use URL Inspection in Google Search Console and view the tested page's HTML, which shows what Google saw after rendering.

  4. 4

    Crawl your own site

    A site crawler lists every outbound link with its rel value. Sort by domain and look for sponsors left unmarked and trusted sources marked nofollow.

  5. 5

    Read the defaults

    Look at the settings of your theme, link plugin and comment system. One checkbox can be the reason four hundred links carry nofollow.

For links pointing at you, the same Inspect step works on the other site's page. A wider review of who links to you belongs in a backlink audit, and our free website audit checks your own pages for the technical faults that sit around links, such as broken addresses and redirect chains.

A link to you marked sponsored or nofollow will generally not pass ranking credit. It still sends people. A sponsor link on the charity 5K's registration page reaches every runner who signs up. A nofollowed link in a local news story puts your name in front of everyone who reads it, and a forum reply that solves someone's problem gets clicked for years. Judge those links by the visitors and the reputation, which GA4's referral report counts.

Mentions matter beyond the click as well. AI answers from ChatGPT, Gemini and Google's AI features draw on what the web says about a business, linked or not, which our page on brand mentions vs backlinks explains. None of that is a reason to chase nofollowed links in bulk. It is a reason not to turn down a good placement because of an attribute.

The rel attribute is a small part of off-page SEO, and the link building section covers earning the links worth marking. The SEO guide puts both in order. If you would rather have someone else read the attributes, fix the templates and earn the links, that work is part of DataCram's monthly SEO programs: no long contract, a defined scope, from $575 a month, depending on how complex the site is, the setup it needs and your budget, per our SEO pricing page.

Questions owners ask about SEO

The basic code is <a href="https://example.com/page">descriptive text</a>. The href holds the address and the words between the tags are the anchor text. Add rel="sponsored" for a paid link, rel="ugc" for a link a visitor posted, or rel="nofollow" for a link you do not vouch for. Google can generally crawl a link only when it is an a element with an href.

Directly, very little. Google says links with nofollow, sponsored or ugc will generally not be followed, and since 2019 it treats the attributes as hints, so it may still learn from a link without crediting it. Indirectly they can matter a great deal: a nofollowed link in a news story or a busy forum sends visitors and puts your name where customers read.

Industry slang for an ordinary link with no nofollow, sponsored or ugc value. Google's documentation has no rel="dofollow" value. A link is followed by default, and the qualifying values exist to say when it should not be. If a vendor charges extra to make a link dofollow, they are charging to remove the label that would mark it as paid.

Sponsored. Google's July 2021 post on link spam says using affiliate links to monetize a site is fine, and asks sites in affiliate programs to qualify those links with rel="sponsored". Nofollow is also accepted for paid links, since it was the original recommendation, but sponsored describes the relationship more precisely.

Usually not. Internal links are how Google finds and understands your pages, and nofollowing them to steer ranking credit is an outdated tactic. Google's qualifying links documentation recommends robots.txt rather than nofollow for links within your own site when you want a URL left alone. To keep a page out of results, use noindex. To choose between similar pages, use canonical tags and better internal links.

No. Since March 1, 2020 Google treats nofollow as a hint for crawling and indexing, and it says linked pages may still be found through sitemaps or other sites' links. To keep a page out of Google, allow crawling and add a noindex rule. Block it in robots.txt only if you want it not fetched at all, knowing Google then cannot see any noindex on it.

Nofollow is a search engine hint about trust and credit. Noopener and noreferrer are browser instructions: noopener keeps the new tab from controlling the page that opened it, and noreferrer also strips the Referer header, so the destination's analytics may log your visitor as direct traffic. Newer browsers apply noopener behavior to target="_blank" links automatically.

Keep reading

Free · No obligation

Find out how your site's links are really marked

Tell us what you are worried about. We will look at the links on your pages and the ones pointing at you, and reply with what is marked wrong and what fixing it involves.

Which of these sounds like you? (pick any)

Rather talk now? Call (210) 346-0848.

CallGet a quote