Hreflang
The annotation that tells Google which version of a page belongs to each language and country.
What it is
Hreflang is an annotation that tells Google about the versions of a page in other languages or for other countries, so it shows each person the right one. It goes in the HTML head, in the HTTP headers or in the sitemap.
Each version must list itself and all the others, and the links must be reciprocal: if page A points to page B and B doesn’t link back, Google ignores the annotation. Addresses are written in full, with https. Hreflang doesn’t make a page rank higher; it helps the right version appear.
On a multilingual website
In Switzerland, almost any website with customers in several regions needs it. A dental clinic with practices in Zurich and Lausanne has /de/, /fr/ and /en/, and each page links to its equivalents with de-CH, fr-CH and en, plus an x-default. Without hreflang, Google may show the German page to someone searching in French. The typical faults are a missing return link and a badly written code.
How Arrampa checks it
Arrampa’s SEO audit runs 14 hreflang checks on every page. Among them: valid codes, a return link, a target that responds, a self-reference, x-default, the HTML, header and sitemap agreeing, and two rules designed for Switzerland.
Source: Google Search Central: localised versions of your page
Related terms
- x-defaultThe hreflang value that says which version to show when no language or country on the list matches the user.
- Language and region codesThe value that identifies a page’s language and, if needed, its country: de-CH is German for Switzerland.
- Canonical tagA line of code that tells Google which is the main address of a page when copies exist.
- Lang attributeThe HTML attribute that declares which language a page is written in, such as fr-CH on a page in French for Switzerland.
Guides
- SEO for a multilingual website in SwitzerlandA multilingual website ranks in Switzerland when each language has its own URL, copy written for that region and keywords researched in that language. The versions are linked with hreflang and measured separately. Here is the method, with what Google and Bing say.
- Hreflang step by stepHreflang is an annotation that tells Google which pages are versions of the same page in other languages or regions. It works if each version lists all of them, itself included, and they all link back to each other. Here is how to do it on a Swiss website and how to check it’s right.
- German for Switzerland or for GermanyIf your customers are in Switzerland, write in Swiss Standard German: no “ß”, the words people use here and prices in francs. A separate de-DE version only pays off if you also sell in Germany and have demand there. This guide explains the differences that matter for SEO and how to mark them up.
- Local SEO in Switzerland across languagesTo appear in local searches in Switzerland, each real location needs its own page in every language it serves, with the town’s name as it’s written in that language. Your name, address and phone number have to match on the website, on your Google profile and in directories. This guide explains how, with examples.
Want to know when we open?
One email to confirm and one on the day we open. Nothing else.