Link Basics

Dofollow Link HTML Code: There Is No rel=dofollow

By BacklinkPrice Team · Nov 28, 2026 · 6 min read
Cover for Dofollow Link HTML Code: a code icon on a purple background

There is no rel=dofollow in HTML. A plain link with no rel attribute is dofollow by default, and adding nofollow, sponsored, or ugc is what turns it off.

Quick answer: A dofollow link is a plain HTML link with no rel value, written as <a href="https://example.com">anchor text</a>, because HTML has no rel="dofollow" value and a link is dofollow by default. Adding rel="nofollow", rel="sponsored", or rel="ugc" tells search engines not to pass ranking credit, according to Google's guide to qualifying outbound links.

TL;DR: There is no dofollow code to add. Write a normal link, leave the rel attribute out, and the link is dofollow. Check any link with Inspect to see what rel value it really carries.

Key takeaways

  • HTML has no rel=dofollow value. A plain <a href> link is dofollow by default, and you turn it off by adding a rel value.
  • The three rel values that stop ranking credit are nofollow, sponsored, and ugc, and they can be combined, according to Google's guide.
  • Google introduced nofollow on January 18, 2005, added sponsored and ugc on September 10, 2019, and treats all three as hints for ranking, according to Google.
  • Google does not transfer PageRank or anchor text across nofollow links, according to Ahrefs' guide updated in November 2020.
  • Roughly one in ten links to the web's top sites is nofollow, according to an Ahrefs analysis cited by BetterLinks in 2026.

HTML has no rel=dofollow value, so there is nothing to add. A link is dofollow when it has no rel attribute at all, and the browser and the search engine both treat it as a normal link.

That surprises people who expect a switch to flip. The web was built with plain links, and nofollow came later as a way to mark the exceptions, not the rule.

<a href="https://example.com/page">anchor text</a>

That single line is a complete dofollow link. The href holds the target, the text between the tags is the anchor, and the absence of rel is what makes it dofollow.

Four code examples that cover most pages

Most links on a site need one of four patterns. Each one is dofollow unless a rel value is added, so copy the pattern and change only the URL and the anchor text.

<a href="https://example.com">Example</a>
<a href="https://example.com" title="Example page">Example</a>
<a href="https://example.com" target="_blank" rel="noopener">Example</a>
<a href="https://example.com"><img src="logo.png" alt="Example logo"></a>

The third example opens in a new tab, and rel=noopener is a security value, not a ranking one. It does not make the link nofollow.

The fourth example is an image link. Google uses the alt text as the anchor text for image links, according to its image SEO guide.

For the strategy behind the code, read what link building is.

Three values change what a link passes. Each one has a job, and using the wrong one is the most common mistake in link code.

rel valueWhat it meansWhen to use it
nofollowDo not pass ranking creditWhen no other value applies
sponsoredPaid link or adAds, sponsorships, paid placements
ugcUser-generated contentComments, forum posts

Google added sponsored and ugc on September 10, 2019, and all three became hints for ranking on that date, according to Google's announcement. The hint for crawling followed on March 1, 2020.

Values can be combined with a space, for example rel="ugc nofollow". That pair is what WordPress adds to comment author links by default, according to WordPress's own behaviour.

Read what a nofollow link is for the full history of each value.

Roughly one in ten links to the web's top sites is nofollow, according to an Ahrefs analysis cited by BetterLinks in 2026, and Google does not transfer PageRank or anchor text across nofollow links, according to Ahrefs' guide updated in November 2020. Source: Ahrefs and BetterLinks (2026).

Right-click the link on a live page, choose Inspect, and read the a tag in the panel. If the tag has no rel attribute, the link is dofollow. If it shows rel=nofollow, rel=sponsored, or rel=ugc, it is not.

View source works too, but it is slower. Search the page source for the URL and read the tag around it.

Browser extensions can highlight nofollow links on a page as you browse. They save time when you check many links, but Inspect is the check that never lies.

If you check links in bulk, export the list first and work through it in batches. A spreadsheet with the URL, the rel value, and the date keeps the check repeatable, and a repeat check a month later catches links that changed after publication.

Once you can read link code, use the free backlink checker to see which of your own links are followed.

  • Writing rel=dofollow, which is not a real value. Browsers ignore it, and the link stays dofollow only because the value means nothing.
  • Writing rel=follow, which is also not a real value and changes nothing.
  • Separating values with commas, when Google wants a space-separated list such as rel="ugc nofollow".
  • Adding nofollow to internal links to shape PageRank, a trick Google stopped rewarding in 2008.
  • Trusting a seller's word instead of checking the code, when Inspect takes 30 seconds.

The PageRank point needs a date. Google changed the math sometime in 2008, and Matt Cutts confirmed the change on June 15, 2009, according to his post on PageRank sculpting.

For the outreach behind the code, read how to build backlinks.

Anchors matter as much as rel values, so read what a link insertion is to see how anchors sit inside real content.

Frequently Asked Questions

Is there a rel=dofollow attribute in HTML?

No. HTML has no rel=dofollow value. A plain link with no rel attribute is dofollow by default.

Write a normal link, such as <a href="https://example.com">anchor text</a>, and leave the rel attribute out. That is the whole code.

No. Noopener is a security value for links that open in a new tab. It does not affect ranking credit.

Right-click the link, choose Inspect, and read the rel attribute. No rel value means dofollow, while nofollow, sponsored, or ugc means it is not.

Can I combine rel values?

Yes. Google accepts a space-separated list, for example rel="ugc nofollow". WordPress uses that pair on comment author links by default.

Expert verdict

Best for: anyone who writes or checks links by hand and wants to know exactly what the code does.

Not for: anyone who wants a shortcut to ranking credit, because the code is the easy part and the link itself is the hard part.

Pros: the code is one line, the check takes 30 seconds, and the rules have been stable since 2019.

Cons: the code cannot fix a bad link, and a seller's promise means nothing until you read the rel attribute.

Bottom line

Write a plain link, leave rel out, and the link is dofollow. Check every paid or promised link with Inspect, because the code on the page is the only promise that counts.

Sources

BacklinkPrice Team
Written by
BacklinkPrice Team
Link building and backlink pricing research

The BacklinkPrice Team researches backlink prices, publisher sites and link building tools. We check prices and plans against each provider's own pages and date them, so you know how current the numbers are.

More from BacklinkPrice Team

Related guides