Hreflang
Language and regional targeting for equivalent pages, with reciprocal tags and x-default.
Status: Active · Role: Dev
Hreflang annotations tell search engines about equivalent page versions targeted at different languages or regions. Translation changes the content; hreflang helps point users to the appropriate version. It is a hint, not a guarantee of the version Google will show.
Minimal example
Place the same set in the head of each equivalent page, with real, fully qualified URLs:
<link rel="alternate" hreflang="en-us" href="https://example.com/us/" />
<link rel="alternate" hreflang="fr-fr" href="https://example.com/fr/" />
<link rel="alternate" hreflang="x-default" href="https://example.com/" />Each language or regional version should reference itself and the other versions reciprocally. x-default is optional and identifies a fallback, often a language selector, for unmatched users; it is not a substitute for language-specific tags. Use valid language and optional region codes, and keep alternates accessible and indexable.
Frequently asked questions
Do I need hreflang for a translated page?
Not always, but it's useful when you have equivalent versions for multiple audiences. It does not translate your page. See Google's localized versions guidance.