Glossary

What is hreflang?

hreflang is an HTML attribute that tells search engines which language or regional version of a page is intended for which audience.

hreflang is an HTML attribute that tells search engines which language or regional version of a page is intended for which audience. Every version lists all the alternatives, itself included, with a language code such as de or en and optionally a region code such as de-AT. The annotation goes in the HTML head, the XML sitemap or the HTTP header.

hreflang matters for every multilingual website and for shops with separate country versions. Without it, visitors may land on the wrong language version, and very similar country pages compete with each other as duplicate content. The references have to be reciprocal: if the German page names the English one but not the other way round, the pair is ignored. The value x-default can also set a version for all other languages.

In web development we build multiple languages in from the start rather than retrofitting them later. In a website relaunch we set the hreflang pairs reciprocally and check them with a validator, together with self-referencing canonical tags per language version.

Questions about this topic?

Thirty minutes with a developer, free of charge and with no sales pressure.

Book a free consultation

Related services

Related terms

All terms in the glossary

Let's talk about your project

The glossary explains the terms. What applies to your system is settled in the first call: thirty minutes with a developer, free of charge and with no sales pressure.

  • Reply within 24 hours on working days