Head Not First in HTML Element
Content appears before the head element inside the html element.
Why it matters
Stray content before head, such as a comment, whitespace, or an injected script, can cause inconsistent parsing across crawlers and browsers.
How to fix it
- Remove stray markup or content placed before head inside html.
- Check tag manager or script injections near the top of the document.
Where to find it
This finding is reported in the Validation tab, and appears in Findings under the matching severity.
A term you don't recognise is defined in the glossary.
Other validation findings
- HTML Document Over 2MB
- Resource Over 2MB
- Missing Head Tag
- Multiple Head Tags
- Missing Body Tag
- Multiple Body Tags
- Invalid Elements in Head
- Body Element Preceding HTML
Findings library, by category.