Technical SEO

Hreflang

Hreflang is an HTML attribute that tells search engines which language and region each version of a page is for, so searchers see the right version.

A computer screen full of code

When you need it

Only if you have the same content in several languages or for several regions, such as English for the US and UK with different pricing. A single-language site doesn't need hreflang.

Rules to get right

  • Every version must list all the others, and itself.
  • Use valid language and region codes, such as en-us or de.
  • Add an x-default for visitors who match none of the versions.

How to set it up

  • Add a tag for every language or region version, including the page itself.
  • Make every link two-way: each version must point back to the others.
  • Add an x-default for visitors who don't match any version.
  • Use the same canonical logic on every version. See canonical tag.

Do you need it?

If your site is in one language for one market, no. Hreflang matters when you have translated or regional versions, such as English for the UK and the US with different pricing. A clear site architecture, with a folder per language, keeps it manageable.

Quick quiz

Test yourself: Hreflang

Three quick questions. Pick an answer to see why it is right or wrong.

  1. 1. What does hreflang tell search engines?

  2. 2. What must hreflang links be?

  3. 3. What is x-default for?

0 of 3 answered

Frequently asked questions

  • No. It helps the right version show in each market; it doesn't make pages rank higher.

  • Yes, as long as each translation is a real equivalent of the original.

  • Yes. You can declare hreflang in the HTML head, in HTTP headers or in the XML sitemap. The sitemap is often easiest for large sites.

Go deeper: the complete guideSaaS SEO: The Complete Guide to Ranking for Pipeline
Let's build what's next

Ready to make growth compound?

Tell us where you want to be in twelve months. We'll show you the channel-by-channel plan to get there.