HTML validation · Head element
Noscript in the head contains an image
A noscript element in the head contains an image. That is invalid, and parsers without JavaScript close the head early there.
How this page is built
At the end of the head of this page, a noscript element contains a one-pixel image, as many tracking scripts suggest. Inside the head, a noscript may only contain link, style and meta elements.
Only the analytics script follows it, so nothing important is pushed into the body here.
Why it matters
Tracking codes often suggest a noscript image as a fallback. Inside the head, that image is invalid. A parser that does not run JavaScript, as some crawlers do not, closes the head when it reaches the image.
Google has warned that this can cause tags after the noscript, such as hreflang or canonicals, to be missed.
How to check it
View the source and search the head for noscript elements, then check what they contain. The W3C Nu HTML Checker reports the invalid image.
How to fix it
Move the noscript image fallback to the start of the body, which is what most tag providers recommend. Keep only link, style and meta elements inside a noscript in the head.