Robots Directive Outside Head Element
What This Means
A <meta name="robots"> element was found outside the document's <head> section. The HTML specification requires this tag to appear inside <head> for it to be valid and recognized by parsers.
Why It Matters for SEO
Search engine parsers look for meta robots directives specifically in the head section. A directive outside the head may be silently ignored — meaning a noindex intended to exclude a page might not be honored, or other robots instructions might not take effect.
What the Platform Checks
The platform locates all meta robots elements and verifies they are inside the document head. Fires when any meta robots element is found outside the head subtree.
How to Fix It
- Move the
<meta name="robots">tag inside<head>. - Check for broken HTML structure that causes the head to close prematurely.
- Validate with the W3C HTML validator to see the full parse tree and confirm head boundaries.
- If the directive appears in a template partial that is included after the head closes, move the include inside the head section.
Find every misplacedrobots directive
The audit flags every robots meta tag outside the head element so you can fix the template structure.