Technical SEO

Hreflang

HTML attribute that specifies language and regional targeting for international pages.

On this page

What is Hreflang

Hreflang is an HTML attribute that tells search engines which language and regional version of a page to show users based on their location and language preferences. Essential for international and multilingual websites.

Example

<link rel="alternate" hreflang="en-us" href="https://example.com/en-us/page" /> <link rel="alternate" hreflang="es" href="https://example.com/es/page" />

How to apply it

Include self-referencing hreflang, ensure bidirectional references, use correct language/region codes, implement via HTML head, HTTP headers, or sitemap.

Tip:Always include an x-default hreflang for users who don't match any specified language/region combination.

Track it in GSC Boost

GSC Boost reads your Search Console data and tells you what to fix first, with the clicks each fix is likely to bring. Start with the guide or sign up free.

Related resources

Was this page helpful?

Sign up freeGet a quote