Contact
What are you interested in?
Hreflang.
Hreflang is an HTML attribute that tells search engines the language and target region of a page. On multilingual or country-specific websites it makes sure each user is shown the right language version in the search results.
Hreflang — Explained in Detail
Hreflang annotations link pages that are equivalent in content across different languages or countries. With rel=«alternate» hreflang=«de-CH» a page signals: this is the version for German-speaking users in Switzerland. Google can then serve the appropriate variant to each user out of several. The annotation says nothing about quality and gives no ranking boost. It is purely a routing instruction that decides which of your existing versions is shown to whom, which is why it can only ever help a site that genuinely has more than one version.
The value combines a language code (ISO 639-1, for example de, fr, it) optionally with a country code (ISO 3166-1, for example CH, DE, AT). For Switzerland the relevant ones are de-CH, fr-CH and it-CH, covering the national languages, while en-CH is common for pages aimed at international companies and expats based in the country. In addition, x-default points to a fallback version for every case not otherwise covered. Language codes come first and stand alone; a country code without a language code is invalid.
Reciprocity is decisive. If page A points to page B via hreflang, B must point back to A. Where that return reference is missing, or the language codes are wrong, Google ignores the annotations altogether rather than guessing. Another frequent mistake is mixing language and country variants without a clean system, for instance listing de, de-CH and de-DE side by side with no rule for who receives which. Every version in the set must also list itself, which is the step most often forgotten.
An example. A Swiss service provider with a German and a French site places one hreflang block on each, pointing to both language versions plus x-default. A user in Geneva then lands on the French page and one in Zurich on the German page, without the two being treated as duplicate content. The same applies to a German-English pair: the English page names the German one and the German page names the English one. Without that mutual reference Google treats the pairing as unconfirmed and quietly disregards it.
Related Page
SEO Agency ZurichFrequently Asked Questions About Hreflang
No. Hreflang is only necessary when the same content exists in several languages or for several countries. A single-language site serving only the Swiss market does fine without it. As soon as a French or English version is added, however, hreflang keeps the versions from crowding each other out of the results and stops Google from picking the wrong one for a given user.
There are three options: as link elements in the head of the page, in the HTTP header (useful for PDFs), or inside the XML sitemap. For most websites the head is the simplest place. Whichever you choose, the essentials stay the same: every language version must reference every other one plus itself, and an x-default should be present as a fallback.
More Terms Starting with "H"
Headless CMS
A headless CMS is a content management system without an integrated frontend ('head'). Content is pr...
HTTPS & SSL
HTTPS (HyperText Transfer Protocol Secure) means that data transmission between browser and server i...
Headless Architecture
Headless Architecture separates the frontend (the visible website) from the backend (database, CMS, ...
Ready for Your Project?
Apply this knowledge to your website — DLM Digital will help you.