- Class
- C2 Recommended
- Weight
- 4
- Severity on fail
- major
- Applies to
Test this rule on a live site with the hreflang checker. Free, no account needed.
Scope and evidence
Evaluated on pages in P with hreflang link elements. The book marks this requirement none (scanner; Google HTML tags guideline).
Fail conditions
Each condition has a stable code and a reason template. The evaluator fills the placeholders from observed values only; no sentence in a report is generated.
combined_attributesA link on {url} combines hreflang with media. Google advises against combining hreflang annotations with other attributes such as media in a single <link> tag.
The documented fix
Emit hreflang annotations in their own link elements.
Sources, quoted
These are the passages the rule rests on, stored once in the knowledge base and emitted exactly as written. A citation marked for specific conditions appears only on findings with those codes.
“don't combine hreflang annotations with other attributes such as media in a single <link> tag.”
[G-HREFLANG] Tell Google about localized versions of your page · HTML tags · last updated 2026-09-21
https://developers.google.com/search/docs/specialty/international/localized-versions