Epic Creative
LibraryInsightsAbout
Search/
© 2026 Epic Creative
AboutLibraryInsights
Digital & SEO

Hreflang Tag Explained for Multi-Language Sites

Learn how hreflang tags work on multilingual websites, including language codes, reciprocal links, x-default, canonicals, implementation choices and technical auditing.

19 Aug 20267 min read1,466 words
In this guide
  1. Begin by defining genuine page alternatives
  2. Understand codes before generating large tag sets
  3. Make relationships reciprocal, complete and self-referencing
  4. Choose the right publication method for the website
  5. Separate canonicalisation from language targeting
  6. Use x-default for a real fallback, not as decoration
  7. Test the rendered output and maintain it as content changes
  8. Should hreflang live in each page's HTML or in the XML sitemap?
  9. Hreflang: five practical questions

Hreflang annotations identify equivalent pages intended for different languages or regional audiences. They are useful when a website offers genuine alternatives, but they do not translate text, force a browser redirect or guarantee which search result a person will see. The practical problem is maintaining accurate relationships between URLs as content changes. A multilingual site can look perfectly functional to a visitor while search engines receive incomplete, contradictory or outdated alternate-language information. The correct solution begins with a verified inventory of pages and ends with a repeatable public-output check, not simply the presence of a tag in a plugin interface.

Illustrative multilingual label interface showing one subject in several languages; this is not a hreflang source-code screenshot
Example of multilingual labels, created by Manuel Merz (WMDE), 16 August 2023. Original Wikimedia Commons file and creator record; CC0 1.0 public-domain dedication, unchanged. The image illustrates language-specific presentation, not a verified hreflang implementation or any observation about Epic Creative.

Begin by defining genuine page alternatives

List the page that serves each language or region and decide whether the pages answer the same underlying reader task. An English guide about a particular service and a French version offering the equivalent information are natural candidates. The English homepage and an unrelated French article are not counterparts merely because both belong to the same website. Likewise, content that changes substantially by market may need different information, not a mechanical translation with a different language code.

Build an inventory with each preferred canonical URL, its content language, intended market, page type, owner and translation status. Do not create annotations for a translation that has not been published or is no longer accessible. Google recommends distinct URLs for language versions because URL-based pages are easier to discover than content presented only after a cookie or browser-language switch. Use meaningful ordinary navigation so visitors can find the versions they want, independently of search engines. See Google's guide to managing multilingual websites for that architectural distinction.

Understand codes before generating large tag sets

Each alternate needs a language value recognised under the supported coding conventions; a region may be added where a specific market variant exists. For example, en describes English generally, while en-GB and en-US distinguish English intended for Britain and the United States. The language is the essential component. Do not use a country code alone as though it were a language, and do not invent an internal market abbreviation that looks plausible but is unsupported.

Check the rendered annotations against the current content inventory, not an old spreadsheet. A site might have a general English version plus a French version, but no distinct regional pages at all. Adding unsupported country variants will not create those missing experiences. Google explains that it uses page content to determine language rather than depending on the HTML lang attribute or hreflang to identify the language. Accordingly, correct tagging cannot compensate for inaccurate or untranslated copy. Keep any changes to code generation under technical review and test representative languages before deploying across all templates.

Make relationships reciprocal, complete and self-referencing

An alternate set is a relationship among versions. Each version should list itself and the other appropriate alternatives, and corresponding pages should link back to one another. Imagine an English and a German service guide: the English page lists both URLs, and the German page lists the same pair. If the German page points back only to its own address, the relationship is incomplete. Google documents return-link requirements and explains nuances for partial networks, particularly when adding languages to an existing site. The safest implementation process maintains a single accurate inventory and consistently generates the applicable relationships from it.

Make sure all target URLs actually resolve to the intended public pages. A tag pointing to a retired translation, generic homepage or error page does not become useful because its syntax is valid. Review the final redirect and canonical destination before choosing the URL. Where a site has many language variants, an automated export can prevent clerical mistakes, but automation only scales the quality of its source data. A publishing workflow should update or remove alternate references when a translation is added, merged or withdrawn. Missing return links require fixing the relationship; they are not resolved by inserting more keywords into the article.

Choose the right publication method for the website

Google supports hreflang in the HTML document head, in suitable HTTP response headers and in XML sitemaps. These are alternative ways to communicate the same relationship, and Google says there is no search benefit from implementing every method simultaneously. HTML link elements can be practical for a modest CMS that reliably knows the alternates for each page. Sitemaps can be appropriate for larger inventories or systems that centralise their multilingual URL mapping. HTTP Link headers can serve non-HTML resources, including PDFs, where a normal HTML head is unavailable.

Whichever route you choose, implement the complete set, not a mixture of conflicting partial outputs. HTML requires well-formed alternate link elements in the head of each version. An XML sitemap requires the correct namespaces, a location entry for each page, and alternate references for each relevant language version within that entry. If both a plugin and an independent sitemap exporter generate hreflang, they can disagree after one is updated. Prefer one dependable owner and document the source of truth. The formal rules and examples appear in Google Search Central's localized versions documentation.

Separate canonicalisation from language targeting

Canonical signals indicate a preferred representative of identical or substantially similar URLs. Hreflang signals describe appropriate language or regional alternatives. They are not substitutes for one another. A French service page should not automatically point canonically to an English page simply because the English content was published first. That can undermine the intended availability of the French version as a separate language destination. Review the site's duplicate URL strategy and the alternate-language strategy together instead of treating them as independent plugin checkboxes.

Follow the preferred public URL for each variant and inspect the actual rendered canonical and alternate values. A redirect from an obsolete path to a current page may mean the hreflang inventory needs updating. Search engines ultimately select canonicals using multiple signals, so no single markup declaration guarantees selection. It is worth testing versions of the same article that differ only through tracking parameters separately from genuine translations. The former may warrant URL consolidation, while the latter should remain usable language versions when the content and business operation justify them.

Use x-default for a real fallback, not as decoration

The special value x-default can represent a fallback page, such as a language selector or a general entry point for people not matched by one of the declared language or region alternatives. It is optional. If the business has no suitable generic landing page, blindly inserting its homepage as x-default across unrelated article groups can direct people to the wrong content. Decide which destination provides an intelligible next step for an unmatched audience before creating the annotation.

Hreflang is not a mechanism for hiding language choice from visitors. Provide a visible, accessible way to switch languages and avoid forcing every visit to another URL based only on an inferred location. Language preferences, travel and cross-border needs can make automatic redirects frustrating. Google notes that its crawler ordinarily requests pages from a US location without an Accept-Language header; a website that varies all content dynamically may not expose its full set of versions to crawling. A clear URL structure gives people direct links they can save, share and navigate.

Test the rendered output and maintain it as content changes

For a practical audit, select an article with two translations, a page with a regional variation and one page deliberately available in only one language. Record exact URLs, expected codes, source method, actual annotation values, return links, response status and canonical. Inspect live HTML for HTML-based implementation, the actual HTTP Link header for header-based implementation, or the published XML file for sitemap implementation. Do not infer the browser result from the CMS interface; caches, template overrides and incomplete deployment can change public output.

When a translation is retired, remove its obsolete references from all affected members of the alternate set. When a site changes domain, update all affected full URLs and verify redirects and links, not merely the homepages. Test navigation, contact forms and other language-specific interactions as well. An accurate hreflang set cannot rescue a page whose translated form is broken or whose service details are invented. Keep a documented owner and rerun a representative audit after large releases, migrations and multilingual content changes.

The useful acceptance result is a consistent, verifiable map of actual equivalent pages, combined with functioning navigation and truthful localisation. It is not a guaranteed search placement or an international traffic percentage. Google explicitly describes the supported methods and their equivalence, while MDN's alternate-link reference explains HTML link semantics. Together they establish an implementation framework; neither verifies this particular site's public hreflang tags without direct inspection.

Should hreflang live in each page's HTML or in the XML sitemap?

Choose one dependable method according to how multilingual URLs are maintained. Both are recognised by Google; the meaningful distinction is operational ownership and where errors are discovered, not an assumed ranking advantage.

Five decisions for the same alternate-language relationship
Decision criterionHTML link elementsXML sitemap extension
Where recordedWell-formed link elements in every version's document headEach URL entry lists its own and all relevant alternates
Best operational fitCMS templates with reliable page-to-translation relationshipsCentral URL inventory or controlled sitemap generation
What must agreeEquivalent self and return references across HTML pagesEquivalent alternate lists across each corresponding URL entry
How to diagnoseFetch public HTML head from each language versionFetch published XML, validate namespace and alternate entries
Common failureOne translated template omits reciprocal annotationsGenerator retains removed translations or old canonical URLs

Practical decision: use HTML when page templates reliably know each alternate; use sitemap annotations when the sitemap generator is the trustworthy central inventory. Verify public output and avoid conflicting simultaneous implementations. Source A (HTML): MDN alternate link relationship reference (web-wide HTML semantics, undated living reference, checked 29 October 2026). This defines the HTML relationship but does not validate Google-specific return-link handling. Source B (sitemap): Google localized versions documentation, sitemap section (Google Search supported markup and reciprocal rules, undated living documentation, checked 29 October 2026). Both routes are recognised, so no comparative ranking benefit or implementation speed is claimed. The additional HTTP header method applies where appropriate, particularly non-HTML assets.

Hreflang: five practical questions

Will hreflang automatically translate a page?

No. It identifies available language or regional alternatives. The translated content, accurate terminology, accessible navigation and useful local information must already exist.

Do language versions need to link back to one another?

Yes. Maintain self-references and reciprocal alternate declarations among the relevant versions. Google documents handling of some partially connected networks, but a consistent complete set is the sound operational target.

Should I add a region code to every hreflang value?

No. Use a language code, with a supported regional component only when an actual regional audience or page variant justifies it. Do not invent country-only or internal market codes.

Must I implement HTML tags and sitemap annotations together?

No. Google supports HTML, HTTP headers and sitemaps as alternative methods and says there is no search benefit from using all methods at once. Choose a method that can be maintained accurately.

When is x-default worth using?

When a real fallback or language-selector page exists for audiences not matched by specific annotations. It is optional and should not be attached to an unrelated generic page merely to fill a template.

PreviousHow to Choose a US SEO Service ProviderNextWhy Your Website Needs HTTPS and SSL

More from Digital & SEO

View all →
3 min read

How to Prioritise SEO Content Refreshes for Small Business Sites

8 min read

How Small SEO Agencies Can Triage Technical Audit Findings

8 min read

A Practical Keyword Mapping Review for Small SEO Agencies

7 min read

A Practical Local SEO Client Intake Process for Small Agencies