Technical SEO

HTML Link Attributes Explained: href, rel, target, title and More

By BacklinkPrice Team · Nov 22, 2026 · 6 min read
Illustrated cover for HTML Link Attributes Explained

What each HTML link attribute does, which ones affect SEO (rel, href), which affect security and analytics (noopener, noreferrer), and copy-ready examples.

HTML link attributes control where a link goes and how browsers and search engines treat it. For SEO, the important ones are href, which must hold a real URL for Google to follow the link, and rel, which can mark a link as nofollow, sponsored, or ugc.

Attributes like target, noopener, and noreferrer affect user experience, security, and analytics, not rankings.

Key takeaways

  • Google can generally follow links only when they are a tags with an href attribute.
  • Google recommends rel="sponsored" for paid links, rel="ugc" for user-generated content, and rel="nofollow" for other links you don't want associated with your site.
  • MDN notes that target="_blank" now implicitly gives the same behaviour as rel="noopener" in modern browsers.
  • rel="noreferrer" hides the referring page, which can make your referral traffic look like direct traffic.
  • title, hreflang, and download add context or behaviour but are not ranking signals by themselves.
AttributeWhat it doesSEO impact
hrefThe destination URLRequired for Google to follow the link
rel="nofollow"Hint not to associate or pass ranking creditYes, a hint to Google
rel="sponsored"Marks paid or sponsored linksYes, a hint to Google
rel="ugc"Marks user-generated content linksYes, a hint to Google
rel="noopener"Blocks the new page from controlling the openerNo (security)
rel="noreferrer"Hides the referrerNo direct impact, affects analytics
target="_blank"Opens in a new tabNo
titleTooltip textNo direct impact
hreflangLanguage of the linked pageHelps with language versions in some cases
downloadDownloads the fileNo

No href, no crawlable link.

Google's link best practices say Google can generally crawl links only if they are an a element with an href attribute. Links built only with JavaScript click handlers may not be followed.

<a href="https://www.example.com/guide/">Read the guide</a>

Use absolute or correctly relative URLs, and avoid href="#" for real navigation.

Three values matter for SEO.

Google's guide to qualifying outbound links recommends:

  • rel="sponsored" for advertisements and paid placements.
  • rel="ugc" for links in user-generated content such as comments and forum posts.
  • rel="nofollow" when you don't want to associate your site with the linked page and the other values don't apply.

You can combine them, for example rel="ugc nofollow". For the basics, see what is a nofollow link.

Read sponsored vs nofollow vs ugc for when to use each.

Google treats these values as hints rather than strict directives. See what Google says about nofollow.

<a href="https://partner.example.com/" rel="sponsored">Partner offer</a>

rel="noopener": security for new tabs

Stops the opened page from controlling yours.

MDN's noopener reference explains that it opens the target without giving the new page access to the document that opened it. It also notes that target="_blank" now implicitly provides the same behaviour.

Browser support is now broad. Can I use lists implicit noopener for target="_blank" in current Chrome, Edge, Firefox, and Safari, but not in Internet Explorer.

Chrome's Lighthouse guidance still suggests adding rel="noopener" explicitly to protect users on older browsers.

rel="noreferrer": privacy, with a cost

Hides where the visitor came from.

MDN's noreferrer reference says it tells the browser to omit the Referer header and also behave as noopener.

The trade-off: sites you link to can't see your site as a referral source. If you want partners to see your traffic, use noopener alone.

Neither noopener nor noreferrer changes how Google treats a link for ranking. They are not the same as nofollow.

target="_blank": opening a new tab

A user experience choice, not an SEO one.

Opening external links in a new tab is a matter of preference. Read should outbound links open in a new tab.

<a href="https://example.com/" target="_blank" rel="noopener">External source</a>

Other rel values you may see

Not every rel value is about SEO.

The WHATWG HTML standard on links defines link types such as external, help, license, me, next, and prev. These describe the relationship between pages for browsers and tools, but Google's link guidance focuses on nofollow, sponsored, and ugc.

For example, rel="me" is used to verify profile ownership on some social platforms, and rel="license" points to a page's licence.

Common attribute combinations

SituationRecommended markup
Normal editorial linkhref only
Paid placementrel="sponsored"
Affiliate linkrel="sponsored"
Comment or forum linkrel="ugc" or rel="ugc nofollow"
External link in a new tabtarget="_blank" rel="noopener"
Link you don't vouch forrel="nofollow"

Read what is a sponsored link for paid and affiliate cases.

title: tooltip text

Helpful for extra context, not for rankings.

The title attribute shows a tooltip on hover. Screen readers handle it inconsistently, so don't rely on it for essential information. Put meaning in the anchor text instead.

hreflang and download

Niche but useful.

  • hreflang on a link tells browsers the language of the target page. For SEO, language versions are usually declared in the page head or sitemap instead.
  • download tells the browser to download the file rather than open it.

Check a sample of pages every quarter.

  • Crawl the site and export all outbound links with their rel values.
  • Filter for paid, affiliate, and partner links and confirm they use sponsored.
  • Look for target="_blank" links without noopener if you support older browsers.
  • Search for anchors without href that are used as navigation.
  • Check comment sections and forums for rel="ugc".

Most crawlers and browser developer tools show these attributes, so the audit takes little time on small sites.

  • Using rel="noreferrer" on partner links, hiding your referral traffic from them.
  • Marking all outbound links nofollow by default.
  • Leaving paid links without rel="sponsored".
  • Creating "links" with JavaScript and no href.
  • Confusing noopener with nofollow.

To check how a link is marked, read how to check if a backlink is dofollow.

Frequently Asked Questions

Does rel="noopener" affect SEO?

No. It is a security attribute that controls the relationship between browser tabs. It doesn't change how Google treats the link.

Is rel="noreferrer" the same as nofollow?

No. noreferrer hides the referring page in browsers; nofollow is a hint to search engines about the link.

Google recommends rel="sponsored" for paid or sponsored links. rel="nofollow" is also acceptable.

Do I need rel="noopener" if I use target="_blank"?

Modern browsers apply noopener behaviour automatically, but adding it explicitly helps older browsers.

Does the title attribute help rankings?

No evidence suggests it does. Use descriptive anchor text instead.

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