One invalid element in the head and Google may miss your meta tags
Code validity is often treated as cosmetic. In the page head, it decides whether Google sees your title, canonical or robots tags at all.
What Google says
Google processes metadata only when it sits in the head element and the head contains only valid elements: title, meta, link, script, style, base and noscript.[1]
If an element such as iframe or img appears in the head, browsers and Google end the head at that point. Tags below it, such as canonical or hreflang, may then be ignored.[1]
Where it happens
Most often when third-party scripts or pixels inject an unsupported element into the head, or in hand-edited templates.[1]
How Fire Horse handles it
Code Check and the SEO audit flag structural errors in the head and recommend placing key metadata as high as possible.
What to check on your website
- Check that the head contains only valid elements.
- Place canonical, robots and hreflang high in the head.
- Re-check the source after adding any new script.
Sources and verification
Sources checked: