# How does hreflang work?

> hreflang tells Google about localized versions of a page.

Example:

`<link rel="alternate"
      hreflang="en-us"
      href="https://example.com/us/page">

<link rel="alternate"
      hreflang="en-gb"
      href="https://example.com/uk/page">
`
Implementations should be consistent and reciprocal.

A page should generally identify its alternate versions, and those versions should reference the relationship correctly.

hreflang is about localization, not a generic duplicate-content fix.

## Sources

- [Google Search Central — Localized Versions](https://developers.google.com/search/docs/specialty/international/localized-versions)

## Related questions

- [Can JavaScript generate structured data?](https://www.theseocentral.com/technical-seo-faq/can-javascript-generate-structured-data.md)
- [How do you approach JavaScript-generated metadata?](https://www.theseocentral.com/technical-seo-faq/how-do-you-approach-javascript-generated-metadata.md)
- [How do you handle pagination on large sites?](https://www.theseocentral.com/technical-seo-faq/how-do-you-handle-pagination-on-large-sites.md)
- [How does structured data fit into Technical SEO?](https://www.theseocentral.com/technical-seo-faq/how-does-structured-data-fit-into-technical-seo.md)
- [How should infinite scroll be implemented for SEO?](https://www.theseocentral.com/technical-seo-faq/how-should-infinite-scroll-be-implemented-for-seo.md)
- [How should you structure international websites?](https://www.theseocentral.com/technical-seo-faq/how-should-you-structure-international-websites.md)
- [How would you audit structured data at scale?](https://www.theseocentral.com/technical-seo-faq/how-would-you-audit-structured-data-at-scale.md)
- [What are common hreflang implementation failures?](https://www.theseocentral.com/technical-seo-faq/what-are-common-hreflang-implementation-failures.md)
- [What is the difference between structured data eligibility and ranking?](https://www.theseocentral.com/technical-seo-faq/what-is-the-difference-between-structured-data-eligibility-and-ranking.md)

---

Answered by Abhinav Krishna (https://www.theseocentral.com/author/abhinav-krishna)
Source: https://www.theseocentral.com/technical-seo-faq/how-does-hreflang-work
