SEO Glossary: Hreflang

In a nutshell: What is Hreflang?

The hreflang tag is an important HTML attribute if a website has content in several languages. The aim is to use the hreflang tag to display the correct version to visitors.

What is a Hreflang tag?

The Hreflang tag is an HTML attribute. It is mainly used when a website has content in multiple languages. If there are several versions of a page in different languages, the Hreflang tag shows them to search engines. Accordingly, Google and Co. are able to display the correct version to their users.

 

Example:

 

  • A German search engine user enters the name of company XY into Google. He immediately receives the result with the domain www.domain.de.

 

  • If a French user also searches for the company, he receives the same version in his national language. The target URL is then: www.domain.de/fr.

 

In this example, the Hreflang tag has ensured that the search engine user gets the corresponding result displayed in their local language.

In a free SEO strategy talk, we uncover untapped potential and develop a strategy to help you become more successful on Google. 

 

Why is the hreflang tag so relevant for SEO?

Offering a website in different languages means a lot of work. The individual language versions have to be created, content translated, etc. So the goal of website operators is to display the appropriate version in their local language to the respective visitors.

Google, among others, works with the Hreflang tag. But the Yandex search engine also takes the HTML attribute into account and enhances the information accordingly. If visitors receive the variant in their language, this results in positive user behavior. This is because they may stay on the page longer and return later. As a result, the bounce rate decreases and the length of stay increases.

For this reason, the hreflang tag is very relevant and important for SEO. And since Google is the world's largest search engine with the most users, the attribute should definitely be taken into account.

But also in terms of DUPLICATE CONTENT the hreflang tag also plays an important role! For example, if you offer a US and a British version. In this case, the search engine is signaled that these are two different versions with corresponding content. This prevents duplicate content, which also means no loss of ranking.

 

How is the Hreflang tag structured?

 

Below is a helpful example of how a Hreflang tag is constructed. This makes it more understandable:

 

<link rel=“alternate“ href=“https://www.domain.de/alternativeurl“ hreflang=“de-DE“ />

  • rel="alternate" shows the search engine that an alternate version of this content is still available

 

  • href=https://www.domain.de/alternativeurlalso shows the URL under which the alternative content is located

 

  • hreflang="de also shows in which language the linked, alternative content is displayed on the alternative URL. The output is in ISO 639-1 format.

 

  • -DE" is an optional country identifier. It is useful, for example, when similar content is in the same language but intended for different regions. The best example is content that is suitable for Germany, Austria and Switzerland. Here the ISO 3166-1 Alpha 2 format is used.

 

Tip: Are there any difficulties in creating Hreflang tags? There are handy Hreflang tag generators available on the web for this purpose.

 

I am known from big media such as Stern, GoDaddy, Onpulson & breakfast television and have already worked with over 100+ well-known clients successful on Google. 

Google rating

Based on 185 reviews

Trustpilot rating

Based on 100 reviews

 

Conclusion: What is a Hreflang tag?

If there is content in different languages on a website, the hreflang tag is now essential. It ensures a positive user experience for visitors and also avoids duplicate content.

Table of contents:

Table of Contents

Share the post

SEO Glossary

More glossary articles

Further contributions

Interesting blog articles

Specht GmbH: Your SEO & SEA specialists

Secure your free strategy meeting now