创建并检查自定义404页面,通过搜索、导航和主要页面链接,为访问失效或已迁移页面的访客指明去向,同时核对页面显示内容与HTTP状态码。
- 创建自定义404页面
- 完善失效链接的搜索与导航
- 检查不存在的页面是否返回200
检查HTML中搜索引擎无法跟踪的链接,找出空href和仅靠JavaScript跳转的元素,并协助改用有效URL或合适的HTML元素。
Use when auditing a page's link elements for crawlability, reviewing JavaScript-heavy SPAs where navigation may not use `<a href>` tags, or checking that dynamically generated links have valid href values.
invalid-links检查搜索引擎能否通过页面链接发现其他页面,并修正存在问题的HTML。它会分类统计缺少href、href为空、值以javascript:开头,以及目标不存在的页内链接。仅通过JavaScript点击事件实现页面跳转的元素也在检查范围内,结果会列出各类问题的数量。
适合检查大量使用JavaScript或动态生成链接的页面,开展SEO审查。页面上的元素即使看起来可以点击,也可能没有向搜索引擎提供可跟踪的目标地址。需要核查这类实现,或区分页面跳转与单纯操作时,可以使用此技能。
button。”mailto:和tel:是有效链接,但应与用于发现页面的链接分别处理。使用#时,需要指定页面内实际存在的目标。
本介绍由 AI(OpenAI Codex)根据公开的 SKILL.md 撰写。准确的规格请查看下方原文。
AI 仅根据 SKILL.md 的内容,从 4 个方面进行了评估。星标数和热度不计入评估。
总分按每项 A=25 分、B=15 分、C=5 分相加。 由 AI(OpenAI Codex)于 2026年10月23日 评估。仅供参考,安装前请同时查看原文。
安装前可以查看交给 AI 代理的指令内容。
Google can only follow links declared as valid <a href> elements with crawlable URL values. Invalid links — empty hrefs, JavaScript voids, or non-URL content — prevent PageRank from flowing to linked pages and stop Googlebot from discovering those destinations.
<a> tags (empty href, JavaScript voids, non-URL values) are not crawlable — Googlebot cannot follow them<a href='...'> elements with valid absolute or relative URLs to pass PageRank and be followedhref) is invisible to search engine crawlersParse all <a> elements on the page. Flag links where href: (1) is empty (href='' or href='#' with no meaningful target). (2) starts with javascript: (e.g., href='javascript:void(0)'). (3) starts with mailto: or tel: — these are valid but not crawlable for page discovery. (4) contains only a fragment identifier that references an anchor not present on the page. (5) is absent entirely (<a> without any href attribute). Report the count per type.
href='javascript:void(0)' or href='#' as navigation triggers:
<a href="javascript:void(0)" onclick="openModal()">View Details</a><a href="/products/details" onclick="openModal(event)">View Details</a><a> elements without href (used as button-like elements):
<button> elementshref='': either add the correct URL or remove the <a> wrapperhref='#' anchors: use meaningful fragment IDs that reference actual page sections (href='#features' where id='features' exists)Google's documentation states that crawlable links must be <a> tags with an href attribute containing a valid URL. Links with javascript: hrefs, empty hrefs, or no href attribute are not followed by crawlers. This means pages only reachable through invalid links are not discovered by Googlebot, and any intended PageRank flow is blocked.
Query all <a> elements in the rendered DOM. For each, extract the href attribute. Flag: absent href, empty string, '#' only, values starting with javascript:, values starting with void. Separately flag <div>, <span>, or <button> elements with onclick navigation handlers that lack a corresponding <a href> — these are not crawlable.
For full implementation details, code examples, and framework-specific guidance,
see references/rule.md.
Rule page: https://frontendchecklist.io/rules/seo/invalid-links
还没有评价。欢迎分享你的使用感受。
无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。
还没有评论。来写第一条吧。
创建并检查自定义404页面,通过搜索、导航和主要页面链接,为访问失效或已迁移页面的访客指明去向,同时核对页面显示内容与HTTP状态码。
检查或创建说明网站用途与运营方的介绍页面,核对组织历史、使命、专业能力及联系方式,并检查实际页面输出,找出信息缺漏。
为页面和共用组件添加自动无障碍测试,检查现有测试的覆盖缺口,并将检查接入持续集成流程,以发现结构、属性问题及修改引入的新问题。
检查从登录、多因素认证到账户恢复的完整流程,找出禁止粘贴、验证码必须手动输入等使用障碍,并协助改进认证方式。
检查表单错误、完成通知和实时更新能否通过屏幕阅读器传达,核对实际显示的HTML属性、通知停留时间及关闭方式,并指出具体问题。
检查表头与数据单元格的对应关系,将 HTML 调整为屏幕阅读器也能传达数据含义的结构。从简单表格到包含合并单元格的复杂表格都可检查。