Canonical Tag Outside Head Element
What This Means
A <link rel="canonical"> element was found in the document but is not a descendant of the <head> element. The tag is in the document body or another position outside the head section.
Why It Matters for SEO
The HTML specification requires link elements like canonicals to appear in <head>. Search engine parsers specifically look for canonical tags in the head section. A canonical outside the head is unlikely to be recognized and will not provide canonicalization benefits.
What the Platform Checks
The platform locates all <link rel="canonical"> elements and verifies they are inside the document head. Fires when a canonical link is found outside the head subtree.
How to Fix It
- Move the canonical
<link>element inside<head>. - Check for broken HTML structure causing the head to close prematurely.
- Review template includes that may be injecting the canonical after the head is closed.
- Validate with the W3C HTML validator to confirm the canonical's DOM position.
Find every misplacedcanonical element
The audit flags every canonical found outside the head element so you can fix the template structure.