hreflang

An HTML attribute that tells search engines which language and country a page is written for and where its other language versions are.

Ask us about your market

An HTML attribute that tells search engines which language and country a page is written for and where its other language versions are.

Also called: hreflang tag, rel=alternate hreflang

hreflang tags list all versions of a page, for example de-CH, fr-CH, it-CH and en. Each version must list all the others and itself, and the URLs must be the canonical ones. They can sit in the HTML head, in HTTP headers or in the XML sitemap.

hreflang does not improve rankings directly. It helps Google show the right version to the right user and prevents versions for different countries from being treated as duplicates.

Why hreflang matters in Switzerland

Swiss websites often have three or four language versions, plus versions for neighbouring countries. Mistakes in hreflang are among the most common technical problems we see on multilingual Swiss sites.

Our tip

Check that every hreflang link points to a page that returns status 200, is canonical and links back.

Related terms

Learn more

← All terms in the Swiss SEO glossary

Frequently asked questions

What is hreflang?

An HTML attribute that tells search engines which language and country a page is written for and where its other language versions are.

Get a free Swiss SEO check

Send us your website and your target market. Within two working days you get a short, honest assessment:

  • How visible you are in Google Switzerland today
  • Which language regions and keywords are worth it
  • A fixed-price proposal in Swiss francs

We only use your details for this request.

📰 SEO news today

Updated: · Headlines from external news sites