Hreflang and international · Language

Mismatched hreflang and HTML lang

Every page in this set labels this page fr (French) in hreflang, but the page is written in English and its html lang is en-GB.

How this page is built

The head of this page has three annotations. The self-reference uses the code for French:

  • fr: this page
  • en-US: the US English version
  • x-default: the region picker

The html element says lang="en-GB", and the text is English. The US English version and the region picker also label this page fr, so the return links agree.

Why it matters

The self-referencing hreflang and the html lang attribute should describe the same language. When they disagree, at least one is wrong, and search engines may show the page to the wrong audience. Here French searchers could be sent an English page.

This usually happens when pages are copied between language versions without the template’s codes being updated.

How to check it

Compare the language in the page’s self-referencing hreflang with its html lang value. Crawl tools report pages where the two do not match.

How to fix it

Correct whichever value is wrong. Here the hreflang for this page should be en-GB on every page in the set.

Back to all tests