How to Compare Hreflang Methods and Validate Localized Pages
When reviewing a multilingual site, treat the localized pages as a set. The practical check is whether each page identifies itself and its language alternatives, and whether the alternatives point back consistently. Google describes that relationship in its localized versions guidance. The method comparison below helps choose where to inspect the annotations before investigating a particular page.
Compare the places to publish hreflang
Google documents three ways to indicate localized alternatives: HTML link elements, HTTP headers, and XML sitemaps. Choose the representation that your team can maintain across the full page set. The comparison is about implementation location; whichever route you use, validate the same relationships among the localized URLs.
| Method | Where to inspect | Useful when | Validation record |
|---|---|---|---|
| HTML link elements | The page markup | The team maintains page templates | URL, language value, self entry, alternatives |
| HTTP headers | The response headers | The response is managed outside the page template | Requested URL, returned headers, alternate targets |
| XML sitemap | The sitemap entries | The team maintains localization data centrally | Entry URL, language values, self entry, alternatives |
Check self-reference and return links
Start with one localized URL and write down the complete alternate set it declares. Include the page itself, then visit every listed alternative and confirm that its set includes the original URL. Google says each language version must list itself and the other versions. Its guidance also allows alternate URLs on different domains, so compare the declared targets rather than assuming that all versions share one host.
- List each localized page URL and the language or region value assigned to it.
- Inspect the selected implementation location and record each page's self-reference.
- Follow every alternate target and verify that the target declares the source page in return.
- Record any missing, inconsistent, or unexpected target for correction and recheck.
Keep the HTML language declaration distinct
Hreflang connects alternate localized URLs. The HTML lang attribute describes the default language of the text in that document. W3C recommends declaring that language on the html element in its language declaration guidance. Review it as a separate page-level check: an alternate relationship does not itself state the default language of the current page's text.
Use a repeatable validation record
For each page in the set, record its URL, declared language or region, implementation location, self-reference, and whether the other pages link back. Add a separate field for the HTML lang value and compare it with the page text's default language. This makes it easier to locate whether a discrepancy sits in the alternate set or in the document's language declaration.
These checks describe implementation relationships and HTML language markup. The cited sources do not establish that hreflang alone resolves indexing problems or determines which URL appears in search. W3C's language guidance concerns HTML markup, not Google's processing of hreflang.
Primary sources: Google Search Central, Tell Google about localized versions of your page, https://developers.google.com/search/docs/specialty/international/localized-versions; W3C Internationalization, Declaring language in HTML, https://www.w3.org/International/questions/qa-html-language-declarations
