Hreflang is an HTML attribute used to tell search engines which language and regional version of a page to serve to users in different locations. It is primarily used on websites that have multiple versions of their content targeting different languages or countries. For example, a website that has separate pages for English-speaking users in the UK, the US, and Australia, or versions of the same content in English, French, and German.
The hreflang attribute is placed in the <head> section of a page, in the HTTP headers, or within an XML sitemap, and it works by creating a set of signals that tell Google: “These pages all cover the same content, but each one is intended for a specific language or regional audience — serve the most appropriate version to each user.”
A typical hreflang tag looks like this:
<link rel="alternate" hreflang="en-gb" href="https://www.example.com/en-gb/page/" />
The attribute value is made up of an ISO language code (such as en for English or fr for French), optionally combined with an ISO country code (such as “gb" for the United Kingdom or “us" for the United States). A special value of x-default is also used to indicate the fallback page to serve when no other version is a match for the user’s language or location.
Common use cases for hreflang are:
- A global eCommerce site with country-specific versions for pricing, currency, and shipping information
- A multilingual website serving content in multiple languages to users across different regions
- A business with separate UK and US sites covering the same topics but with localised spelling, terminology, and content
Common hreflang implementation mistakes include:
- Missing return tags — every page referenced in an hreflang annotation must include a reciprocal tag pointing back to all other versions, otherwise the implementation will not work correctly
- Incorrect language or country codes — using codes that do not conform to the ISO standard will cause the attribute to be ignored
- Hreflang tags pointing to redirecting or non-indexable URLs — all URLs referenced must be canonical, indexable pages
- Inconsistent implementation across sitemap, HTTP headers, and on-page tags — conflicting signals can confuse search engines.
Hreflang is a critical tool for international SEO. Without it, search engines may serve the wrong regional version of a page to users. For example, showing a US-focused page to users in the UK, or displaying content in the wrong language entirely. This can result in a poor user experience and missed ranking opportunities in target markets.
Correctly implementing hreflang ensures that each version of your content is matched to the right audience, reduces the risk of duplicate content issues between regional variants, and helps search engines understand the full international structure of your site. Given the complexity of hreflang implementation, it is one of the areas most commonly affected by errors, so regular auditing is an important part of maintaining a healthy international SEO setup.
« Back to Glossary Index




