Lawrence Hitches Maintained by Lawrence Hitches | AI SEO Consultant | Updated June 25, 2026
An audio guide that reads this page aloud in your browser. The full written text below is the transcript.

Hreflang tells Google which language or region version of a page to serve which users. The tag is <link rel="alternate" hreflang="en-au" href="...">, using an ISO 639-1 language code plus an optional ISO 3166-1 region code, with x-default for the fallback. The two rules that break most setups: every page must reference itself, and every alternate must link back. This is the one-page reference.

The hreflang format

ValueExampleMeans
Language onlyhreflang="en"English speakers anywhere
Language + regionhreflang="en-au"English speakers in Australia
Another pairinghreflang="fr-ca"French speakers in Canada
Fallbackhreflang="x-default"The default page when no other matches

Where to put hreflang (pick one method)

MethodUse when
HTML <head> link tagsStandard HTML pages. The most common method
HTTP headerNon-HTML files like PDFs
XML sitemapLarge sites, to keep tags out of every page head

The rules that break most setups

RuleWhat it means
Self-referenceEvery page must include an hreflang tag pointing to itself
Return tagsIf page A points to page B, page B must point back to A. Missing return tags is the number one error
Valid codesUse ISO 639-1 for language and ISO 3166-1 alpha-2 for region. "en-uk" is invalid (it is "en-gb")
Absolute URLsAlways use full https URLs, not relative paths
One x-defaultSet a single x-default for users no version targets

Hreflang is part of technical SEO. Validate it in Google Search Console after deploying.

Frequently asked questions

What is hreflang used for?

Hreflang tells search engines which language or regional version of a page to show which users, so an Australian sees your en-au page and a Canadian sees your fr-ca page. It prevents the wrong-language page ranking and reduces duplicate-content confusion across international versions.

What is the most common hreflang mistake?

Missing return tags. If page A declares page B as an alternate, page B must declare A back. Without bidirectional confirmation Google ignores the annotations. The next most common errors are invalid codes (en-uk instead of en-gb) and relative URLs.

Do I need x-default?

It is recommended. x-default specifies the page to serve when no language or region version matches the user, such as an international landing page or a language selector. Without it, Google guesses the fallback.

Where should hreflang tags go?

Pick one method and stick to it: link tags in the HTML head (most common), HTTP headers (for non-HTML files like PDFs), or the XML sitemap (best for large sites). Do not mix methods on the same pages, it causes conflicts.

Find this useful? Add Lawrence Hitches as a preferred source on Google to get my latest in Search and AI results.
Add as preferred source

Soaring Above Search

Weekly AI search insights from the front line. One newsletter. Six sections. Everything that actually moved this week, with a practitioner's take.

Lawrence Hitches
Lawrence Hitches AI SEO Consultant, Melbourne

Chief of Staff at StudioHawk, Australia's largest dedicated SEO agency. Specialising in AI search visibility, technical SEO, and organic growth strategy. Leading a team of 120+ across Melbourne, Sydney, London, and the US. Book a free consultation →