Hreflang and international · Hreflang annotations

Hreflang outside the head

This page's hreflang link elements sit in the body instead of the head, so search engines ignore them and the hreflang set loses its return links.

How this page is built

The three hreflang annotations for this page are placed in the body, just below this paragraph, where search engines do not read them:

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

The US English version and the region picker have their annotations in the head, as they should.

Why it matters

Search engines read hreflang link elements only from the head. Any found in the body are ignored, so the page acts as if it had no annotations at all, and its partners’ annotations have no return link.

This happens when a plugin injects tags late, or when something invalid in the head, such as a stray element, makes the browser close the head early.

How to check it

View the source and find the hreflang link elements. Check that they sit between the opening and closing head tags. Also check the rendered DOM, because an invalid element earlier in the head can push them into the body.

How to fix it

Move the link elements into the head, above any element that could close it early. If a plugin adds them, configure it to output them in the head.

Back to all tests