In plain words
If your site is in two languages, a search engine may see two nearly identical pages and not understand which is for whom. With hreflang you say directly: "this is the same page, but in Kazakh, and here is its address."
The attribute is specified in the page code, in server response headers, or in the sitemap. The value is written as a language code, for example ru or kk.
How it works
On each page you list all of its versions, including itself. The Russian page links to the Kazakh one and vice versa. The link must be mutual: if one page points to another and that one doesn't point back, the attribute won't work.
You can also use the x-default value for the page that applies by default when the user's language is unknown.
Why it matters for business
For a business in Kazakhstan with two languages, this is a way not to lose part of your audience and not to create duplicates. Kazakh-language queries are a separate layer of demand where competition is noticeably lower.
Without hreflang, a search engine may show the wrong version, or treat the pages as duplicates and ignore one of them.
What to keep in mind
Before launch, check that every version of a page has a return link, language codes are spelled correctly, URLs are absolute, and the language switcher is visible to the user and leads to the matching page rather than the home page.
Example from practice
A law firm in Astana built a Kazakh version of its site but didn't link the versions. Kazakh-language search results showed the Russian page. After we added hreflang and translated the titles, the Kazakh version began appearing for queries in Kazakh.
Common mistakes
- Adding a link in one direction only
- Mistyping the language or country code
- Machine-translating the text and leaving it unedited
- Redirecting users by browser language without giving them a choice
- Not specifying a page's version pointing to itself