Skip to main content
Detects meta tags incorrectly placed in document body
Rule IDcontent/meta-in-body
CategoryContent
ScopePer-page
Severityerror
Weight8/10

Solution

Move all meta tags from <body> to <head>. Meta tags in the body are ignored by browsers and search engines. Common offenders: meta description, viewport, robots, and Open Graph tags. This is often caused by incorrect HTML structure or dynamic rendering issues.

Enable / Disable

Disable this rule

squirrel.toml
[rules]
disable = ["content/meta-in-body"]

Disable all Content rules

squirrel.toml
[rules]
disable = ["content/*"]

Enable only this rule

squirrel.toml
[rules]
enable = ["content/meta-in-body"]
disable = ["*"]