Hreflang Tags
HTML attributes that tell search engines which language and region a page targets.
The Definition
Hreflang tags (rel="alternate" hreflang="x") are HTML link elements or HTTP headers that tell search engines which language and regional version of a page to show to users in different locations. They are essential for international websites that serve content in multiple languages or target different countries.
Why It Matters
Without hreflang tags, search engines may show the wrong language version to users, or treat different language versions as duplicate content. Proper implementation ensures French users see the French page, German users see the German page, and so on.
Best Practices
Include a self-referencing hreflang tag on every language version of a page in addition to the alternate versions
Use correct ISO 639-1 language codes and ISO 3166-1 alpha-2 region codes (e.g., en-US, fr-FR, de-DE)
Ensure every hreflang tag has a corresponding return tag on the target page — missing return tags invalidate the implementation
Include an x-default hreflang tag pointing to a language selector page or your primary language version
Place hreflang tags consistently — either in HTML head, HTTP headers, or sitemap (do not mix methods)
Validate hreflang implementation with specialized tools since manual validation across many pages is error-prone
Mistakes to Avoid
- 1
Missing return tags — if page A declares page B as French, page B must declare page A back
- 2
Using incorrect language or region codes that search engines cannot recognize
- 3
Pointing hreflang tags to non-canonical URLs or pages blocked by robots.txt
- 4
Implementing hreflang without also setting the correct canonical tags, creating conflicting signals
Audit Checks
How Digispot AI identifies and fixes related issues
No hreflang tags found for international audience targeting.
Impact: Without proper hreflang implementation: - Search engines may show wrong language versions - International traffic may see incorrect content - Duplicate content issues across languages - Reduced CTR in international markets
Add hreflang tags for all language/region variants.
Hreflang tags have invalid format or syntax.
Impact: Invalid hreflang format: - Search engines cannot parse hreflang tags - Language/region targeting may fail - Hreflang tags may be ignored completely
Fix hreflang tag format to follow proper syntax (e.g., hreflang="en-US" or hreflang="x-default").
Hreflang tags are not bidirectional - page A links to B but B does not link back to A.
Impact: Incomplete hreflang returns: - Search engines may not recognize language relationships - Hreflang implementation may be ignored - Incorrect language versions may be shown to users
Ensure all hreflang relationships are bidirectional - if page A links to page B, page B must link back to page A.
Multiple hreflang tags point to the same language/region combination.
Impact: Duplicate hreflang tags: - May confuse search engines about preferred version - Can lead to inconsistent language targeting - Wastes crawl budget
Remove duplicate hreflang tags, ensuring only one tag per language/region combination.
No x-default hreflang tag found.
Impact: Without x-default: - No fallback for unmatched languages/regions - Poor user experience for non-targeted users
Add x-default hreflang tag pointing to your default language version.
Inconsistent language declarations found.
Impact: Conflicting language signals can confuse search engines
Ensure HTML lang attribute matches content-language meta tag.