meta-in-body
What it does
This skill checks that meta tags, such as noindex, canonical, description, and viewport tags, sit inside the page head. It is for web builders who want search engines and browsers to read them.
When to use it
- ✓When you ask the agent to check the HTML structure of a page for misplaced tags.
- ✓When a plugin or script may have added meta tags to the body and search directives seem to be ignored.
- ✓When a page is indexed or dropped unexpectedly and you need to confirm its meta directives are in the right place.
Skill link
https://github.com/thedaviddias/Front-End-Checklist/blob/main/skills/meta-in-body/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agent’s skills folder.
Example of what to ask your AI
“Some of my meta tags might be in the wrong place on my page. Can you check and fix them?”
5 new skills a week. 1 minute to read.
How it works
The agent parses the page and looks for meta elements that sit inside the body or after the head closes. It then moves them into the head, or changes the script that inserts them so it targets the head.
Technical content (original SKILL.md)
Original text by the author, straight from GitHub.
Meta Tags in Body
Meta tags placed in the document body are ignored by search engines and most browsers—directives like noindex or canonical-url are silently ineffective, causing pages to be indexed or de-indexed unexpectedly.
Quick Reference
- All <meta> tags must appear inside <head>, never inside <body>
- Browsers may ignore or move misplaced meta tags, making them ineffective
- Crawlers like Googlebot only process meta tags found in <head>
- Validate with HTML validator or inspect parsed DOM to confirm placement
Check
Parse the HTML and check whether any <meta> elements appear outside <head>—i.e., inside <body> or after the </head> closing tag. Flag each misplaced tag by name/property.
Fix
Move all <meta> tags into the <head> section before </head>. If they are injected by a script after the DOM is built, refactor the injection to target document.head instead of document.body.
Explain
Meta tags are document-level metadata and must live in <head>. When placed in <body>, they fall outside the metadata model of the document—search engines and browsers do not honour them, so directives like noindex or canonical-url will have no effect.
Code Review
Parse the rendered HTML and check the DOM structure. Find all <meta> elements. For each one, traverse up the parent chain — if any ancestor is <body> or if the element appears after </head> in the source, flag it. Pay special attention to: meta name='robots', meta name='description', meta property='og:*', and link rel='canonical' placed in body.
For full implementation details, code examples, and framework-specific guidance,
see references/rule.md.
Rule page: https://frontendchecklist.io/rules/seo/meta-in-body
FAQ
Why do misplaced meta tags matter?
Search engines and browsers may ignore them, so directives like noindex or canonical will have no effect.
What if a script adds the tags?
The skill suggests changing the script to add them to the document head instead of the body.
How can I check the placement?
The skill recommends an HTML validator or inspecting the parsed page structure.
Details
Original description by the author
Use when auditing HTML document structure. Applies to any page where meta tags (noindex, canonical-url, description, viewport, OG tags) may have been injected into the body by CMS plugins, widgets, or JavaScript rendering.
Popularity
- GitHub stars
- 75k
- Ranking position
- #2935
- License
- MIT
- Updated
- 10/31/2026
Comments
- …
More skills from this repository
frontendchecklist
75kChecks frontend code and live pages against 380+ rules for accessibility, speed, SEO and security, using a command-line tool.
frontend-checklist-global
75kAudits a frontend project against all 386 Front-End Checklist rules, and gives a specific fix for each issue found.
404-page
75kChecks that your missing-page screen offers helpful links and returns a real 404 status, to help lost visitors find their way.
about-page
75kReviews whether your site has a clear About page that explains who runs it, to build trust with visitors and search engines.
Similar skills
angular-developer
280kHelps your agent create Angular code and give project structure advice. Useful for starting new projects, creating code parts, or improving performance and accessibility.
frontend-a11y
280kHelps your agent make web interfaces accessible to everyone. It ensures websites and apps work well with screen readers and keyboard navigation.
frontend-patterns
280kHas your agent apply modern patterns in frontend development. It optimizes performance, manages state, and follows best practices in React and Next.js.