Hreflang

Hreflang is an HTML annotation that tells search engines which language and region a page targets, so the right version is served to the right users.

Hreflang is an HTML annotation that tells search engines which language and region a page is meant for, so a searcher in France sees the French page and a searcher in Canada sees the Canadian one. It is how a site with many localized versions avoids showing the wrong variant, or letting those variants compete with each other.

How it works

Each page declares a set of rel="alternate" hreflang="x" links naming every language-region variant, including a self-reference and usually an x-default fallback. The annotations must be reciprocal: if the US page points to the UK page, the UK page must point back. Hreflang works alongside canonicalization — each localized URL is its own canonical, and hreflang connects the set rather than collapsing it. Mismatched, one-way, or wrong-code annotations are the most common failure, and they quietly send users to the wrong version.

Where it applies

Any site serving more than one language or country market:

  • Ecommerce — regional catalogs with different currencies, pricing, and availability.
  • Enterprise and global brands — dozens of language-region combinations where errors scale fast.
  • Publishing — the same story localized across editions without cannibalizing itself.
  • B2B and SaaS — country-specific pricing and compliance pages that must reach the right market.

What matters from each seat

  • In-house — generate hreflang from a single source of truth so the reciprocal links stay consistent as pages are added.
  • Engineering — render the annotations server-side (in the HTML head or the sitemap), never via client-side JavaScript.
  • Agency and consulting — a reciprocity and return-tag audit is a fast, high-value fix on any international site.
← All glossary termsUpdated July 20, 2026

Have a search problem worth solving?

Bring the migration, the ranking drop, or the question you cannot get a straight answer on. One call tells us both whether I can help.

Book a call