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.

Explore your own search data

Connect Search Console to AnotherSEOGuru App to see which searches bring people to a page and how its clicks have changed. Start with the guide or sign up free.

Related resources

Was this page helpful?

Sign up freeLive demo