Hreflang is an attribute that tells search engines a page has alternative versions for other languages or regions, so the right one is served to the right audience. It is among the most error-prone parts of international SEO.
It is implemented in link elements in the head, in HTTP headers, or in an XML sitemap. Values combine an ISO 639-1 language code with an optional ISO 3166-1 region code, as in en-gb or es-mx. Annotations must be reciprocal — every version must reference every other, including itself — and a x-default value can specify a fallback.
Without hreflang, a US visitor may be served the UK page with the wrong currency and shipping, or versions may compete with each other and be treated as duplicates. With incorrect hreflang the annotations are ignored entirely, which is why implementation errors are so costly.
Ensure every annotation set is fully reciprocal and self-referencing, and use correct codes — the United Kingdom is gb, not uk. Point hreflang at canonical URLs only, never at redirects or non-canonical variants, and monitor the international targeting report for errors after deployment.
Want to learn more? Explore our SEO Glossary or check out our expert guides on SEO strategies.