Skip to content

Technical SEO · 7 min read

Hreflang Tag: Implementation, Return Tags and Mistakes

A hreflang tag is an HTML attribute that tells search engines which language and regional version of a page to show a searcher.

By , Founder and SEO & Development Consultant, Banana MarketingPublished
One page linked to its hreflang versions for Pakistan, the United Kingdom, the UAE and an x-default

A hreflang tag is an HTML attribute that tells search engines which language and regional version of a page to show a searcher, so one piece of content can serve multiple audiences without duplicate-content conflicts. Google introduced the attribute on 5 December 2011, and it still supports hreflang today even though Search Console stopped centrally flagging hreflang errors on 22 September 2022, when it deprecated the International Targeting report. A site with language variants and no hreflang tags risks showing a Spanish page to a French searcher, or ranking neither version for the audience it was built for.

Key takeaways

  • Origin: Google announced hreflang support on 5 December 2011, in a Google Webmaster Central Blog post titled "New markup for multilingual content."
  • Implementation: Google supports 3 equivalent methods: HTML link tags, HTTP headers and an xml sitemap.
  • Reciprocity: a hreflang entry needs a matching return tag on the page it points to, or Google ignores the annotation; this is the most commonly failed rule.
  • Monitoring: Search Console's International Targeting report, which once flagged hreflang errors, was deprecated on 22 September 2022.
  • Scope: hreflang is a hint about language and region, not a ranking signal and not a substitute for a canonical tag.

What Is a Hreflang Tag?

A hreflang tag is an HTML attribute, written as rel="alternate" hreflang="x", that names the language and, optionally, the region a specific URL targets, linking it to its equivalent versions in other languages. Hreflang sits inside a broader technical SEO review alongside crawlability and indexing, since Google only reads the annotation on pages it can already crawl.

The language value follows ISO 639-1 (en, fr, es), and an optional region value follows ISO 3166-1 (en-GB, en-US), joined with a hyphen rather than the "en-UK" format some sites use by mistake. Each page in a language set also includes a self-referencing hreflang entry pointing to itself, not only to its alternates.

What Are the 3 Ways to Implement Hreflang?

Google's own documentation names 3 equivalent ways to declare hreflang: HTML link tags in a page's head, an HTTP header, and an xml sitemap entry, and a site picks one method rather than mixing them across the same set of URLs. Each method names the same relationship; Google treats all 3 the same once it reads them correctly.

MethodWhere it livesBest for
HTML link tags<link rel="alternate" hreflang="..." href="..."> in the page's <head>Standard HTML pages, the most common choice
HTTP headerA Link: response headerNon-HTML files, such as PDFs
XML sitemap<xhtml:link> entries inside each URL's sitemap recordLarge sites, since it keeps the annotations out of every page's markup

A site already maintaining an xml sitemap for crawl discovery often finds the sitemap method easiest to keep accurate, since every language URL and its alternates sit in one file instead of scattered across many page heads.

What Are Return Tags and Why Do They Matter?

A return tag is the matching hreflang entry a target page must carry pointing back to the page that referenced it, and a missing return tag is the single most common reason a hreflang implementation fails. A Spanish page linking to its English alternate requires the English page to carry its own hreflang entry linking back to that Spanish page, or Google ignores the original annotation entirely.

Hreflang works as a hint, the same way a canonical tag does, not as a directive Google is obligated to follow. Google confirms the relationship by checking both directions before trusting it, which is why a one-sided entry, common after a page gets renamed or a 301 redirects a URL without updating its alternates, quietly stops working rather than throwing a visible error.

What Does the x-default Value Do?

The x-default value marks the fallback page Google shows a searcher whose language or region doesn't match any of a site's declared alternates, such as a generic landing page or a language-selector screen. Google documents it as optional but recommends setting one for every hreflang set with more than a single regional variant.

A site without an x-default value still works for searchers whose language matches a declared alternate; the value only affects what unmatched searchers see. Skipping it on a 2-language site is a minor gap, but skipping it on a set covering a dozen regions leaves every searcher outside that list with no defined fallback.

Why Was Search Console's International Targeting Report Deprecated?

Google deprecated Search Console's International Targeting report on 22 September 2022, removing the one tool that centrally flagged hreflang errors and the separate country-targeting setting, which Google judged to have little value for the ecosystem. Google's support page confirms hreflang itself is still fully supported; only the dedicated error report is gone.

Since the report's removal, a broken or one-sided hreflang entry can stop working without any visible warning inside Search Console. Log file analysis fills part of that gap by confirming whether Googlebot is actually requesting each language URL in a set, and a third-party crawler remains the more direct way to audit return tags across a whole site at once.

What Common Hreflang Mistakes Break International SEO?

Most hreflang mistakes break the reciprocal relationship the annotation depends on, rather than the syntax of the tag itself, which is why a set that validates on one page can still fail silently on its alternates. Each mistake below removes or contradicts a signal the whole set relies on for Google's trust.

  • Missing return tags: a one-sided entry that the target page doesn't reciprocate gets ignored, the single most common failure.
  • Mismatched protocols: a hreflang entry pointing from an HTTPS page to an HTTP alternate breaks the relationship; website security for SEO reviews confirm every alternate uses a matching protocol.
  • Blocked alternates: a robots.txt file disallowing crawling of an international subfolder keeps Google from ever reading that page's return tag.
  • JavaScript-injected tags: hreflang added only after a script runs is a JavaScript SEO problem, since Google must render the page before it sees the annotation at all.
  • Canonical conflicts: a page whose canonical tag points at a different URL than its hreflang self-reference tells Google to trust the canonical and ignore the hreflang set.
  • Inconsistent structure: language variants built on different website structure or mismatched sitemaps undermine the 1-to-1 mapping hreflang assumes between alternates.
  • Separate mobile URLs: a site running mobile SEO on separate m-dot URLs needs its own hreflang set for the mobile versions, since a desktop alternate doesn't satisfy the requirement for a mobile URL.

A hreflang review fits naturally into a broader SEO audit alongside crawlability, structured data and Core Web Vitals, since none of those signals work in isolation from the others on a multi-region site.

NumberWhat it meansSource
5 Dec 2011Date Google announced hreflang supportGoogle Webmaster Central Blog
3Equivalent implementation methods: HTML link tags, HTTP header, xml sitemapGoogle Search Central
22 Sep 2022Date Search Console deprecated the International Targeting reportGoogle Search Central
1,000 / moUS monthly search volume for "hreflang tag", KD 66Ahrefs, 10 Nov 2026

Hreflang FAQ

What is a hreflang tag?

A hreflang tag is an HTML attribute that tells search engines which language and regional version of a page to show a searcher, so one piece of content can serve multiple audiences without duplicate-content conflicts.

What are hreflang return tags?

A return tag is the matching hreflang entry a target page must carry pointing back to the page that referenced it. A missing return tag is the single most common reason a hreflang implementation fails.

What does the x-default value do?

The x-default value marks the fallback page Google shows a searcher whose language or region doesn't match any of a site's declared alternates, such as a generic landing page or a language-selector screen.

Does Google still support hreflang?

Yes. Google deprecated Search Console's International Targeting report on 22 September 2022, but its support page confirms hreflang itself and its multilingual-site guidance remain fully in effect.

Is hreflang a ranking signal?

No. Hreflang is a hint about which language and regional version to show a searcher, not a ranking signal, and it does not replace a canonical tag's role in resolving duplicate content.

The Bottom Line

A hreflang tag only works when its return tags reciprocate correctly: Google has supported the attribute since 5 December 2011 across 3 equivalent implementation methods, but a missing return tag, a blocked alternate or a JavaScript-injected entry breaks the set silently, with no central Search Console report to flag it since 22 September 2022. A technical SEO checklist built without a dedicated international-SEO pass misses exactly the kind of silent failure hreflang is prone to. Request Banana Marketing's technical SEO audit to confirm a site's hreflang set resolves correctly in both directions before it costs international visibility.

A manager banana leads an annoyed, reluctant junior back to work while checking a client call.

Not sure what's holding your site back? We'll audit it.

Our technical SEO audit checks crawling, indexing, speed and structure, then ranks every fix by impact so your developers know where to start.