EN
Start free
Start free

What is hreflang?

Hreflang is an HTML attribute that tells search engines which language and, optionally, which country a page is meant for, and where its alternative versions are. It helps the right version appear for each searcher. It labels pages and does not translate them.

Last updated

In more detail

A business with pages in several languages wants Hindi speakers to land on the Hindi page and English speakers on the English one. Hreflang annotations make that link explicit, so a search engine can show the most suitable version. Each version lists all the others, and itself, using a language code and an optional region code, such as "hi" for Hindi or "en-GB" for English in Britain. Google supports language codes from ISO 639-1 and region codes from ISO 3166-1 Alpha 2, and a reserved value, x-default, marks the fallback page for everyone else. The annotations can go in the page's head, in the sitemap or in HTTP headers. The common mistake is missing return links: Google notes that if page X links to page Y, page Y must link back, or the annotations may be ignored. Another is an invalid code, such as a country used alone, or "UK" where the correct code is "GB".

Source

The facts that can change were checked against developers.google.com/search/docs/specialty/international/l… (opens in a new tab) in November 2026.

Put the words into practice

Wonib learns your brand once, then makes the posts, pictures, copy, decks and documents in it, checked against the brand before you see them. Start free with 1,000 credits, no card needed.

Last updated

Start free with 1,000 credits

No card needed. Sign up with Google or your email, confirm it, and make your first piece in minutes.

Continue with Google

or

Already have an account? Sign in