Audit my site
On-pageBeginnerChecked against Google docs · Oct 2026

Links on the page: anchor text and rel values

Each link on a page tells Google where another page is and what it is about, and the rel attribute says whether you vouch for it. Get the markup right and paid, user-generated and editorial links each send the signal they should.

Author: Eugene Serbin, Head of SEO at Semalt Updated: 30 October 2026 Reading time: 18 min Visuals: 4

In short

Every link on a page tells Google two things: where another page is, and something about what that page is about. Most links need no rel attribute at all; you add rel="sponsored" to paid and affiliate links, rel="ugc" to links your users post, and rel="nofollow" when you do not want to vouch for the destination. All three are hints to Google, not commands, so use robots.txt or noindex when you really need to keep a URL out of crawling or out of the index.

What a link tells Google

Links do two jobs for Google. They are a discovery path: Googlebot finds new URLs by following them. And they are a signal: the link, its anchor text and the words around it help Google understand what the destination is about and how pages relate to each other.

A link on your page is made of four parts, and each one carries part of that message:

This lesson is about links inside your page content: links out to other sites, affiliate and sponsored links, links in comments and forums, and broken links in your text. How links tie your own site together is covered in the lesson "Internal linking and orphan pages". How links from other sites to yours are weighed is covered in "How Google evaluates links today".

What Google officially says

“Google uses links as a signal when determining the relevancy of pages and to find new pages to crawl.”

Google Search Central — Link best practices for Google

“For regular links that you expect Google to fetch and parse without any qualifications, you don't need to add a rel attribute.”

Google Search Central — Qualify your outbound links to Google

“Linking to other sites isn't something to be scared of; in fact, using external links can help establish trustworthiness (for example, citing your sources).”

Google Search Central — Link best practices for Google

“Use nofollow only when you don't trust the source, and not for every external link on your site.”

Google Search Central — Link best practices for Google

“If you were paid in some way for the link, qualify these links with sponsored or nofollow.”

Google Search Central — Link best practices for Google

“Link spam is the practice of creating links to or from a site primarily for the purpose of manipulating search rankings.”

Google Search Central — Spam policies for Google web search

Crawlable link markup

Before any of the rest matters, Google has to recognise the link. The rule is short: “Generally, Google can only crawl your link if it's an <a> HTML element (also known as anchor element) with an href attribute.” And the flip side: “Most links in other formats won't be parsed and extracted by Google's crawlers.”

Google's own examples split cleanly:

JavaScript is fine as long as the result is a normal link: “Links are also crawlable when you use JavaScript to insert them into a page dynamically as long as it uses the HTML markup shown above.” The usual trouble is a <button> or a <div> with a click handler that changes the page. Users can navigate with it; Google cannot. For script-heavy sites, the rendering side is covered in the lesson "JavaScript SEO and rendering".

Anchor text: how to write it

“Anchor text (also known as link text) is the visible text of a link.” Google's documentation explains why it matters: “This text tells people and Google something about the page you're linking to.”

Google's standard for it is one sentence long: “Good anchor text is descriptive, reasonably concise, and relevant to the page that it's on and to the page it links to.” In practice that rules out three kinds of anchor:

A useful test from the same page: “Try reading only the anchor text (out of context) and check if it's specific enough to make sense by itself.” Screen reader users often do exactly that, jumping from link to link, so a good anchor helps accessibility as well as search.

Examples · Anchor text, from Google's own documentation

✓ Good

  • See the <a>list of cheese types</a>
  • <a>ghost peppers</a>
  • Image link with alt="add enchiladas to your cart"
  • Only the words that name the destination are linked
  • Links spaced out, each with its own context in the sentence

✕ Bad

  • <a>Click here</a> to learn more
  • <a>Read more</a>, or our <a>website</a>
  • Empty link, or image link with alt=""
  • A whole sentence wrapped in one link
  • Five links in a row, one word each
Read each anchor on its own: if you cannot tell where it leads, rewrite it.

Three edge cases are worth knowing:

If anchor text is inserted by JavaScript, Google's advice is to “use the URL Inspection Tool to make sure it's present in the rendered HTML.”

Outbound links: linking to other sites

Some site owners still avoid linking out, or add nofollow to every external link, in the belief that it "leaks" something. Google's documentation says the opposite: citing sources can help establish trust, and you should “Link out to external sites when it makes sense, and provide context to your readers about what they can expect.”

Good practice for outbound links:

The case for nofollow on an outbound link is narrow. Google's example is a page that criticises another site: you want to link so readers can see what you are responding to, but you do not want to pass along your reputation. That is the moment for nofollow, not every link to a site you do not own.

The rel values: sponsored, ugc, nofollow

Google supports three values for qualifying an outbound link. Each one describes a different relationship, and the table puts Google's definitions side by side.

Reference · The three rel values Google supports
ValueGoogle's definitionUse it forExample
sponsored“Mark links that are advertisements or paid placements (commonly called paid links) with the sponsored value.”Ads, sponsorships, affiliate links, sponsored posts, links in return for a free product<a rel="sponsored" href="…">
ugc“We recommend marking user-generated content (UGC) links, such as comments and forum posts, with the ugc value.”Comments, forum and Q&A posts, user profiles, reviews written by users<a rel="ugc" href="…">
nofollow“Use the nofollow value when other values don't apply, and you'd rather Google not associate your site with, or crawl the linked page from, your site.”A link you need to show but do not vouch for; also acceptable for paid links<a rel="nofollow" href="…">
no rel“For regular links that you expect Google to fetch and parse without any qualifications, you don't need to add a rel attribute.”Editorial links: sources, recommendations, references, your own pages<a href="…">
Most links on a healthy page sit in the last row; the rel values are for the exceptions.

rel="sponsored"

Use it whenever the link exists because of a payment or other compensation: banner and text ads, sponsorships, affiliate links, paid reviews and guest posts, and links in content about a product you received for free. nofollow still works for these links: “The nofollow attribute was previously recommended for these types of links and is still an acceptable way to flag them, though sponsored is preferred.” You do not need to change old nofollow paid links; Google's 2019 announcement said “There's absolutely no need to change any nofollow links that you already have.”

rel="ugc"

Use it for links that your users, not your editors, put on the page: blog comments, forum threads, Q&A answers, profile pages, user reviews. Google also allows you to reward good members: “If you want to recognize and reward trustworthy contributors, you might remove this attribute from links posted by members or users who have consistently made high-quality contributions over time.”

rel="nofollow"

Use it when the link is neither paid nor user-generated but you still do not want to endorse it. Typical cases: a page you are criticising, a source you must cite but do not trust, a link in a press quote you reproduce. It is the fallback value, not the default for all outbound links.

Do not use it on links to your own pages to steer crawling or "save" ranking value. Google is explicit: “For links within your own site, use the robots.txt disallow rule.”

Decision tree · Which rel value does this link need?
Choosing a rel value for a link If you were paid or given something for the link, use rel sponsored. Otherwise, if a user added the link, use rel ugc. Otherwise, if you do not trust or vouch for the destination, use rel nofollow. Otherwise use a plain link with no rel attribute. YesYesNo NoNoYes Were you paid or given somethingfor this link? Did a user add the link(comment, forum, profile)? Do you trust and vouch forthe destination? rel="sponsored"rel="ugc"rel="nofollow" ads, affiliate, gifted productsadd nofollow too if you wishno endorsement, no association Plain link, no rel the normal case for cited sources
Ask the questions in this order: payment comes first, so a paid link posted by a user still gets sponsored.

Combining rel values

One link can carry more than one value: “You may specify multiple rel values as a space- or comma-separated list.” Google's examples are rel="ugc nofollow" and rel="ugc,nofollow". The 2019 announcement answers the question directly: “Yes, you can use more than one rel value on a link.”

Useful combinations:

What if you pick the wrong value? Google's answer: “There's no wrong attribute except in the case of sponsored links.” Marking a comment link as sponsored costs little. Leaving a paid link unmarked is the real problem: “Any link that is clearly an ad or sponsored should use sponsored or nofollow, as described above.”

Code · Common links, wrong and right

Wrong

<!-- affiliate link, no qualification -->
<a href="https://shop.example.com/?aff=123">
  Buy the kettle</a>

<!-- comment link, no qualification -->
<a href="https://spam.example.net/">
  cheap loans</a>

<!-- not a crawlable link -->
<span onclick="goto('/guide')">
  Guide</span>

<!-- generic anchor -->
<a href="https://example.org/study">
  click here</a>
  • Paid and user links pass as editorial endorsements
  • Google cannot extract the span as a link
  • The anchor says nothing about the study

Right

<!-- affiliate link -->
<a href="https://shop.example.com/?aff=123"
   rel="sponsored">Buy the kettle</a>

<!-- comment link -->
<a href="https://blog.example.net/"
   rel="ugc nofollow">Anna's blog</a>

<!-- crawlable link -->
<a href="/guide">Kettle descaling guide</a>

<!-- descriptive anchor, new tab -->
<a href="https://example.org/study"
   target="_blank" rel="noopener">
  2026 limescale study</a>
  • Each link states its relationship
  • A real <a href> Google can follow
  • The anchor names the destination
The fixes are small attribute changes, but they change what each link says about your site.

nofollow is a hint, not a block

Until 2019, Google did not count nofollow links at all. In September 2019 it introduced sponsored and ugc and changed the model: all three values are now “treated as hints about which links to consider or exclude within Search”. Google explained that links carry useful information, such as how the words in a link describe the page it points to, and that the hint model lets it keep that information. For crawling and indexing the change came a little later: “For crawling and indexing purposes, nofollow will become a hint as of March 1, 2020.”

Two consequences follow:

Do not confuse the link attribute with the page-level rule. rel="nofollow" on an <a> tag applies to that one link. <meta name="robots" content="nofollow"> applies to every link on the page. The page-level version is covered in "Meta robots and X-Robots-Tag".

Affiliate and sponsored links

An affiliate link earns you a commission, so it is a paid link and gets rel="sponsored" (or nofollow). The same applies to sponsored posts, paid reviews, link inserts sold to advertisers and articles about products you received for free. Google's link spam examples include “Exchanging money for links, or posts that contain links”, “Exchanging goods or services for links” and “Sending someone a product in exchange for them writing about it and including a link”.

Paid links are not banned. Google's own words: “Google does understand that buying and selling links is a normal part of the economy of the web for advertising and sponsorship purposes.” The condition: “It's not a violation of our policies to have such links as long as they are qualified with a rel="nofollow" or rel="sponsored" attribute value to the <a> tag.”

In practice:

Content matters as much as markup. Google's spam policies define thin affiliation as “the practice of publishing content with product affiliate links where the product descriptions and reviews are copied directly from the original merchant without any original content or added value.” They also say “Not every site that participates in an affiliate program is a thin affiliate.” Original reviews, real testing, comparisons and price information are what Google lists as added value. And its site reputation policy explicitly does not object to “Using affiliate links throughout a page, with links treated appropriately, or embedding third-party ad units throughout a page”.

User-generated links: comments, forums, profiles

Any place where visitors can post text with links will attract spam. Google's definition: “User-generated spam is spammy content added to a site by users through a channel intended for user content.” Its examples include spammy forum posts, comment spam on blogs and spammy accounts on hosting services. Google's link spam list also names “Forum comments with optimized links in the post or signature”.

A sound setup for any user-content area:

  1. Make rel="ugc" the template default for links in comments, posts, signatures and profile fields. Add nofollow as well if other systems read your pages.
  2. Moderate before publishing, or hold the first posts of new accounts for review. Use the anti-spam tools of your platform.
  3. Restrict links where they add nothing. Profile "website" fields and signatures are the favourite targets; consider removing links from them or showing links only to signed-in members.
  4. Reward trusted members. Removing ugc for long-standing, high-quality contributors is allowed, as Google's documentation says.
  5. Clean up old threads. Spam that slipped through years ago still sits on your pages. Search old content for outbound links to unrelated topics.

Link spam on your own pages

Link spam is usually discussed as a backlink problem, but much of it lives in the HTML of the page that hosts the link. These patterns from Google's spam policy are things you control on your own site:

The consequence is stated plainly in the spam policies: “Sites that violate our policies may rank lower in results or not appear in results at all.”

Broken links and redirects in content

Links rot. Pages move, sites close, domains expire. A broken link is a dead end for a reader and a sign that nobody maintains the page. Google does not publish a rule about broken outbound links, but keeping them working is basic page quality.

A crawl of your site with outbound link checking turned on, repeated on a schedule, catches most of these. Prioritise pages that get traffic.

target="_blank" and rel="noopener"

Neither of these is a search signal. They are about security and user experience, and they often get mixed up with the SEO rel values because they live in the same attribute.

Whether to open links in new tabs is a UX decision. Opening every link in a new tab breaks the back button for users. A sensible rule is to do it only when leaving the page would interrupt a task, such as a form or a checkout, and to signal it with an icon or text.

Check the links and status codes on your site

OurSEO Tools runs a 69-point checklist, including on-page, internal linking and redirects, and a technical crawl of up to 1,000 pages with the status code of every URL, so redirects and broken pages show up in one run.

69-point checklistTechnical crawlContent analysis

Common mistakes

FAQ

What is the difference between nofollow and sponsored?

sponsored says why the link is there: it is paid. nofollow only says you do not want to be associated with it. For paid links Google accepts both but prefers sponsored.

Do I have to replace my old nofollow paid links with sponsored?

No. Google said there is no need to change existing nofollow links. Use sponsored for new paid links when it is convenient.

Does linking to other sites hurt my rankings?

No. Google says external links can help establish trustworthiness, for example when you cite your sources. Link where it helps the reader, with a plain link.

Should comment links be ugc or nofollow?

ugc describes them best. rel="ugc nofollow" is also valid if you want older systems to understand it.

What happens if I leave a paid link unmarked?

Unqualified paid links are listed as link spam in Google's spam policies, and sites that violate those policies may rank lower or not appear in results at all. Marking the link with sponsored or nofollow removes the problem.

Does rel="noopener" or target="_blank" affect SEO?

No. noopener is a browser security setting and target="_blank" only opens a new tab. Neither changes how Google treats the link.

Sources

Quotes checked against the official pages on 30 October 2026.