Lessons

Hreflang tag

The ‘` tag is used to help search engines navigate in different language versions of pages. Thus, users will receive exactly the language version that suits them.

An example of using hreflang:

<link rel="alternate" hreflang="ru"
href="https://ru.example.com/page.html" />
<link rel="alternate" hreflang="en"
href="https://en.example.com/page.html" />
<link rel="alternate" hreflang="x-default"
href="https://www.example.com/" />

For all pages that don’t have their own language version, you can show the default version. To do this, add the x-default attribute to one of the hreflang tags.

Here are the basic rules for specifying hreflang:

  • There must be at least 2 of them.
  • The link must contain the site domain.
  • Filled in the rel, hreflang, and href attributes.
  • Presence of the canonical tag.
  • The hreflang attribute must contain 1 or 2 values: language code and region code. For example, ru or ru-RU.

An article with detailed instructions available here.

Tariff plans for working with the service

We use cookies. By continuing to use the site, you agree to the processing of personal data in accordance with privacy policy. I agree