The fallback URL for users whose language/region isn't targeted. Usually your main page.

What Are Hreflang Tags and Why Do They Matter?

Hreflang attributes tell Google which language and/or region a specific page is intended for, and which alternate versions exist for other languages or regions. Without hreflang, Google may show users the wrong language version of your page โ€” a French speaker getting the English page, for example โ€” which increases bounce rates and reduces international SEO effectiveness.

The hreflang tag uses ISO 639-1 language codes (like en for English, fr for French) optionally combined with ISO 3166-1 Alpha-2 country codes (like en-US for English in the US, en-GB for English in the UK). The x-default value designates the fallback URL shown when no other language/region match is found.

A critical requirement is that hreflang must be bidirectional โ€” if Page A references Page B as its French alternate, Page B must reference Page A as its English alternate. Missing reciprocal links is the most common hreflang implementation error, and Google ignores the tags if they aren't properly reciprocated.

Hreflang Implementation Methods

  • HTML <head> tags โ€” Add <link rel="alternate" hreflang="..."> tags to the <head> of every page in the set. This is the most common method and works for any site.
  • XML Sitemap โ€” Define the hreflang relationships in your sitemap using <xhtml:link> elements. Useful for large sites where adding tags to every page is impractical.
  • HTTP headers โ€” For non-HTML content like PDFs, you can return hreflang in HTTP response headers. Rarely needed but technically valid.

Related Tools