Locale + URL Pairs
Guidance
What hreflang does
Hreflang tags help search engines understand which language or regional page version should be shown to different users on multilingual or multi-country sites [web:736][web:741][web:743].
Typical implementation rules
- Use language codes like `en` or combined language-region values like `en-US` [web:738][web:741].
- Add an optional `x-default` fallback URL when appropriate [web:734][web:738].
- Place the alternate tags in the HTML head or an XML sitemap, depending on your implementation method [web:736][web:744][web:746].
Important reminder
Hreflang sets typically need reciprocal references across all localized page variants, not just one page in isolation [web:736][web:738][web:739].
Generated Hreflang Output
How it works
Hreflang generators typically take locale and URL pairs, then produce alternate annotations that identify language-only or language-region page versions for international SEO [web:734][web:736][web:741]. Many tools also support `x-default`, self-referencing tags, and output formats for HTML head markup or XML sitemaps [web:734][web:736][web:744].
- Locale values commonly follow language or language-region formats such as `en`, `en-US`, or `fr-FR` [web:738][web:741].
- `x-default` is commonly used as a fallback target for unmatched users [web:734][web:743].
- Generated tags are typically placed on every relevant localized page in the set, not only one page [web:736][web:739].