What it looks like
In the head of each version of a “Rooms” page, in English, French and German:
<link rel="alternate" hreflang="en" href="https://example.com/rooms/">
<link rel="alternate" hreflang="fr" href="https://example.com/fr/chambres/">
<link rel="alternate" hreflang="de" href="https://example.com/de/zimmer/">
<link rel="alternate" hreflang="x-default" href="https://example.com/rooms/">
x-default designates the page to show when no language matches.
The rules
- Each version lists all the others, and itself. Every version carries exactly the same list.
- Links go both ways. If one version lists another, the other must list it too. Otherwise, Google may ignore the tag.
- A full URL that responds. Not a URL that redirects elsewhere, not a page that can't be found.
- The right language code:
en,de,pt-BR… In the standard Google follows (ISO 639-1),ukmeans Ukrainian: UK English is writtenen-GB.
The four most common mistakes
- Announcing a language whose page isn't translated yet.
- Forgetting the return link from one of the versions.
- Listing a URL that redirects or no longer exists.
- Putting the tags on some pages only.
Sources (read on 15/10/2026)
- Google Search Central, “Tell Google about localized versions of your page”