GitHub

Meta Tags in Body

Detects meta tags incorrectly placed in document body

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
toml
[rules]
disable = ["content/meta-in-body"]

Disable all Content rules

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

Enable only this rule

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

Type to search…

↑↓ navigate ↵ open esc close