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.
Related terms
- LocalisationLocalisation is the process of adapting content or a product for a particular place and audience.→
- Canonical tagA canonical tag is a line in a page's HTML that tells search engines which address is the main version of a page when the same or very similar content can be reached at more than one address.→
- XML sitemapAn XML sitemap is a file on a website that lists the pages its owner wants search engines to find.→
- Regional marketingRegional marketing is marketing designed for a specific state, city or language community instead of for a whole country.→
More in Languages and India
Do it with Wonib
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