Technical SEO

What Is Hreflang?

An HTML tag that tells search engines which language and country the same content is intended for on multilingual or multi-regional sites. If implemented incorrectly, the page in the wrong language may rank in the wrong country.

SEO Glossary · HNo. 068/170

Hreflang

noun · Technical SEO

6Implementation steps
3Questions answered

Hreflang — Detailed Explanation

Hreflang is an HTML attribute that tells search engines about different language or region versions of the same content; for example, if a product page has Turkish, English, and German versions, hreflang tags indicate that these pages correspond to one another and which language-country combination they target. The tag consists of a language code (ISO 639-1) plus an optional country code (ISO 3166-1), for example, tr-TR or en-US.

This markup can be defined in the link element in the head section, in the HTTP header, or in sitemap.xml; the most common approach is to add reciprocal (bidirectional) tags in each page's own head that reference all other language versions. The reciprocity principle is critically important: if page A points to page B with hreflang, page B must point back to A; otherwise, Google may consider the tags unreliable and ignore them.

Hreflang is not a direct ranking factor, but if implemented incorrectly it can cause serious visibility losses; for example, users in Turkey being shown an English page or two regional pages in the same language cannibalizing each other.

Why It Matters

For multinational or multilingual sites, hreflang helps ensure that the correct language/region version is shown to the right user, improving user experience and preventing duplicate content issues. Incorrect or incomplete hreflang implementation can cause same-language pages in different countries to compete with each other and lead search engines to rank the wrong page in the wrong region.

How to Apply It

  • 1Determine the correct language and country code combination for each page version (for example, tr-TR, en-GB, de-DE).
  • 2Make sure all language versions are marked with reciprocal hreflang tags, including self-referencing ones.
  • 3Add the x-default tag for the default language to indicate which page users should be sent to when no match is found.
  • 4On large sites, manage hreflang in sitemap.xml instead of the HTML head to avoid bloating page size.
  • 5Regularly check the International Targeting report in Google Search Console to detect hreflang errors (missing reciprocity, incorrect code format).
  • 6Make sure the canonical URL does not conflict with hreflang tags; each language page should be canonical to itself.

Example

A SaaS company sells its product in the Turkey, US, and UK markets; it creates separate pages in the site.com/tr/, site.com/us/, and site.com/uk/ directories and adds hreflang='tr-TR', hreflang='en-US', and hreflang='en-GB' tags in the head section of each page pointing to the other two pages and to itself. This way, a user searching from the UK sees the en-GB page, while a user searching from the US sees the en-US page.

Common Mistakes

  • Violating the reciprocity principle, meaning page A points to page B, but B does not point back to A.
  • Writing language and country codes in the wrong format (for example, using codes that do not comply with ISO standards).
  • Forgetting to add the x-default tag, which can cause unmatched traffic to land on the wrong page.
  • Applying hreflang tags only on some pages and leaving the site inconsistent.
  • Creating a conflict between the canonical URL and hreflang, for example, having a language page canonicalize to a page in another language.

Is Hreflang Implemented Correctly on Your Site?

Let's review your website's SEO health together, in plain language.

Free SEO Analysis
Hreflang

Frequently Asked Questions About Hreflang

We answer the most common questions about this term.

  • Does Hreflang directly affect rankings?

    No, hreflang is not a direct ranking factor; however, by showing the right page to the right user, it improves user experience and indirectly boosts ranking performance.

  • Do different countries that speak the same language need separate hreflang tags?

    Yes, if the content or pricing differs by region (for example, en-US and en-GB), separate hreflang tags should be used; if the content is completely the same, a single language code (en) may be enough.

  • Where is it better to define hreflang tags, in the HTML head or in the sitemap?

    For small and medium-sized sites, the HTML head is practical; on large sites with many language/region combinations, managing it in sitemap.xml keeps page size small and makes maintenance easier.

Free quote

Leave SEO to the Experts

Learning the terms is a start; seeing results takes a professional strategy. Let's analyze your website together.

  • Reply within 24 hours
  • Transparent pricing
  • No commitment