broken-html
它能做什么
这项技能检查页面的 HTML 结构是否存在错误,例如未闭合的标签或多余的字符。适合希望页面显示一致、索引良好的网页团队。
适用场景
- ✓当页面在不同浏览器中显示不一致时。
- ✓当验证工具或审查报告了未闭合的标签或嵌套错误时。
- ✓当你在源代码中发现页面的 head 和 body 结构不对时。
技能链接
https://github.com/thedaviddias/Front-End-Checklist/blob/main/skills/broken-html/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请检查我首页的 HTML 是否有未闭合的标签或多余的字符,并加以修复。”
每周 5 个新技能,1 分钟读完。
工作原理
智能体会审查标记中的未闭合标签、错误嵌套和未转义的字符,并将其修正为符合 HTML 标准的写法。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Fix malformed HTML structure
Malformed HTML can cause rendering issues across browsers and may prevent search engine crawlers from accurately parsing and indexing your content.
Quick Reference
- Ensure all HTML tags are properly closed and nested according to specifications
- Remove stray tags or unescaped characters from the source code
- Verify the document structure follows a logical hierarchy with valid head and body sections
Check
Validate the HTML structure of the page to identify any unclosed tags, incorrect nesting, or structural errors.
Fix
Correct the malformed HTML by properly closing tags and ensuring all elements are nested according to the HTML5 specification.
Explain
Explain how significant HTML errors can impact search engine bot crawling and the accessibility of a website.
Code Review
Review metadata generation, rendered HTML, structured data, and response headers related to Fix malformed HTML structure. Flag exact routes or templates where search-facing output violates the rule, and describe how to verify the final page output.
For full implementation details, code examples, and framework-specific guidance,
see references/rule.md.
Rule page: https://frontendchecklist.io/rules/seo/broken-html
常见问题
HTML 错误会影响搜索吗?
这项技能说明,严重的错误可能影响搜索引擎爬虫抓取和解析内容的方式。
错误也会影响无障碍访问吗?
会。这项技能指出,HTML 错误可能影响网站的访问方式。
页面应当遵循什么结构?
符合 HTML5 规范所描述的、合乎逻辑的 head 和 body 结构。
详情
作者的原始描述
Use when auditing metadata, crawlability, structured data, or indexability related to Fix malformed HTML structure. Verify the rendered HTML and HTTP response rather than relying only on source files.
热度
- GitHub 星标
- 75k
- 排名
- #2759
- 许可证
- MIT
- 更新时间
- 2026/10/31
评论
- …
同一仓库的更多技能
frontendchecklist
75k使用命令行工具,依据 380 多条关于无障碍、速度、SEO 和安全的规则,检查前端代码和线上页面。
frontend-checklist-global
75k依据全部 386 条 Front-End Checklist 规则审查前端项目,并为发现的每个问题给出具体修复方法。
404-page
75k检查你的页面缺失提示是否提供有用的链接,并返回真正的 404 状态,帮助迷路的访客找到方向。
about-page
75k审查你的网站是否有清晰的关于页面,说明由谁运营,以建立访客和搜索引擎的信任。