Skip to content
Technical

hreflang

Also known as: language versions · alternate hreflang

You add hreflang as <link rel="alternate" hreflang="en-GB" href="…"> in the <head>, in an HTTP header or in your XML sitemap. Every version must refer to all other versions and to itself. Use x-default for the version shown to all other languages.

Why it matters

Without hreflang, an English-speaking visitor may see the Dutch page, or a search engine finds two versions that look alike. Google uses hreflang; Bing relies mainly on lang attributes and other signals.

How to approach it

  • Use valid codes: language (en), optionally with region (en-GB).
  • Make sure links are reciprocal; a version without a return link is ignored.
  • Combine with a Canonical URL pointing to the page's own language version.
  • Set <html lang="…"> correctly as well.

Sources

  1. Google Search Central: Tell Google about localized versions of your page (hreflang)
  2. Google Search Central: Managing multi-regional and multilingual sites

Related terms

← All terms

How does your site perform?

The free scan checks your technical setup and measures whether ChatGPT, Gemini, Claude and Perplexity mention you.

Start free scan