Hreflang and international · Hreflang annotations

Unsupported or misconfigured hreflang

One of this page's alternate links uses a lang attribute instead of hreflang, which search engines do not support, so the US version is missing.

How this page is built

The head of this page has three alternate link elements. The one for the US page has lang="en-US" where it should have hreflang="en-US":

  • en-GB: this page
  • lang="en-US": the US English version, with the wrong attribute
  • x-default: the region picker

The US English version and the region picker have correct annotations.

Why it matters

Search engines support hreflang in three places: link elements in the head, HTTP Link headers and XML sitemaps. They also expect a fixed structure: rel=alternate, a hreflang attribute and an absolute href. Anything else, such as a lang attribute, a hreflang on an ordinary link or a meta tag, is ignored.

Here the US page drops out of this page’s set, so its link to this page has no return link.

How to check it

View the source and check each alternate link element for rel=alternate, hreflang and an absolute href. Crawl tools report hreflang that is malformed or declared in a way they cannot read.

How to fix it

Use the supported structure: <link rel="alternate" hreflang="en-US" href="https://…"> in the head, one for each version.

Back to all tests