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.

PRO subscription for working with the service

Promo
Checking 50 pages in the tool "Checking the page"
190 ₽
The subscription is activated for 10 days and is linked to a specific site.
PRO subscription
3,500 pages per week in tools "Checking the page" and "Full site scan".
1 580 ₽
The subscription is activated for 30 days and you can scan any site.
Wallet
Additional pages that are credited to a separate balance. For checking large sites.
200 ₽
Number of pages
An active PRO subscription is required.
We use cookies. By continuing to use the site, you agree to the processing of personal data in accordance with privacy policy. I agree