最常犯的 HTML 标识错误 Top 100

2023-11-03

国外的一个网站 W3CLove ,最近对在其网站上进行的 45 万的网页验证进行统计,下面是最频繁的错误和警告列表。

W3CLove是一个用来验证网页编写是否规范的在线网站,不过用它来测试 oschina 页面的时候,提示错误:

Sorry, we could not scrape this page.

Please check it's an existent URL, or try again in a few minutes.

Top 100 errors list

  1. required attribute "alt" not specified, 1,392,075 times.
  2. & did not start a character reference. (& probably should have been escaped as &.), 764,450 times.
  3. end tag for "img" omitted, but OMITTAG NO was specified, 663,765 times.
  4. end tag for "br" omitted, but OMITTAG NO was specified, 502,366 times.
  5. an attribute value specification must be an attribute value literal unless shorttag yes is specified, 463,999 times.
  6. an attribute value must be a literal unless it contains only name characters, 337,970 times.
  7. required attribute "type" not specified, 293,050 times.
  8. document type does not allow element "div" here; missing  one of "object", "applet", "map", "iframe", "button", "ins", "del"  start-tag, 274,987 times.
  9. document type does not allow element "p" here; missing  one of "object", "applet", "map", "iframe", "button", "ins", "del"  start-tag, 202,423 times.
  10. document type does not allow element "li" here; missing one of "ul", "ol", "menu", "dir" start-tag, 196,060 times.
  11. an img element must have an alt attribute, except under  certain conditions. for details, consult guidance on providing text  alternatives for images., 164,988 times.
  12. end tag for "input" omitted, but OMITTAG NO was specified, 160,066 times.
  13. end tag for "p" omitted, but OMITTAG NO was specified, 142,452 times.
  14. end tag for "ul" which is not finished, 142,081 times.
  15. end tag for element "a" which is not open, 115,545 times.
  16. document type does not allow element "div" here; missing one of "applet", "object", "map", "iframe", "button" start-tag, 115,358 times.
  17. end tag for "li" omitted, but OMITTAG NO was specified, 101,451 times.
  18. element "div" undefined, 98,741 times.
  19. reference to entity "action" for which no system identifier could be generated, 93,877 times.
  20. document type does not allow element "link" here, 91,422 times.
  21. document type does not allow element "a" here, 84,233 times.
  22. reference to entity "id" for which no system identifier could be generated, 82,970 times.
  23. document type does not allow element "div" here; missing one of "object", "ins", "del", "map", "button" start-tag, 82,761 times.
  24. end tag for element "div" which is not open, 82,144 times.
  25. document type does not allow element "input" here;  missing one of "p", "h1", "h2", "h3", "h4", "h5", "h6", "div", "pre",  "address", "fieldset", "ins", "del" start-tag, 80,011 times.
  26. document type does not allow element "li" here; missing one of "ul", "ol" start-tag, 77,854 times.
  27. character data is not allowed here, 73,051 times.
  28. there is no attribute "width", 72,246 times.
  29. attribute property not allowed on element meta at this point., 72,024 times.
  30. end tag for "meta" omitted, but OMITTAG NO was specified, 71,601 times.
  31. document type does not allow element "style" here, 70,476 times.
  32. reference to entity "nbsp" for which no system identifier could be generated, 69,629 times.
  33. reference to entity "widgetid" for which no system identifier could be generated, 69,565 times.
  34. syntax of attribute value does not conform to declared value, 66,937 times.
  35. element meta is missing one or more of the following attributes: http-equiv, itemprop, name., 65,735 times.
  36. document type does not allow element "meta" here, 64,134 times.
  37. reference to entity "cat" for which no system identifier could be generated, 60,781 times.
  38. there is no attribute "height", 60,035 times.
  39. end tag for "div" omitted, but OMITTAG NO was specified, 59,892 times.
  40. an attribute specification must start with a name or name token, 59,374 times.
  41. bad value category tag for attribute rel on element a: keyword category is not registered., 58,762 times.
  42. consecutive hyphens did not terminate a comment. -- is not permitted inside a comment, but e.g. - - is., 57,425 times.
  43. document type does not allow element "div" here, 56,466 times.
  44. reference to entity "widgettype" for which no system identifier could be generated, 54,850 times.
  45. document type does not allow element "option" here, 54,802 times.
  46. reference to entity "sectionid" for which no system identifier could be generated, 53,532 times.
  47. value of attribute "align" cannot be "absmiddle"; must be one of "top", "middle", "bottom", "left", "right", 52,637 times.
  48. element "g:plusone" undefined, 50,184 times.
  49. end tag for "link" omitted, but OMITTAG NO was specified, 50,006 times.
  50. reference to entity "postid" for which no system identifier could be generated, 48,854 times.
  51. character "/" is not allowed in the value of attribute "id", 47,406 times.
  52. document type does not allow element "script" here, 47,169 times.
  53. document type does not allow element "p" here; missing one of "object", "ins", "del", "map", "button" start-tag, 47,167 times.
  54. element "br" undefined, 46,530 times.
  55. NET-enabling start-tag not immediately followed by null end-tag, 45,105 times.
  56. there is no attribute "src", 44,667 times.
  57. end tag for element "p" which is not open, 44,416 times.
  58. document type does not allow element "tr" here, 44,374 times.
  59. there is no attribute "href", 43,999 times.
  60. there is no attribute "target", 43,848 times.
  61. the width attribute on the td element is obsolete. Use CSS instead., 43,173 times.
  62. element "a" undefined, 42,579 times.
  63. end tag for "a" omitted, but OMITTAG NO was specified, 42,486 times.
  64. the frameborder attribute on the iframe element is obsolete. Use CSS instead., 42,393 times.
  65. there is no attribute "allowtransparency", 41,756 times.
  66. the align attribute on the td element is obsolete. Use CSS instead., 41,471 times.
  67. end tag for "option" omitted, but OMITTAG NO was specified, 41,181 times.
  68. there is no attribute "property", 40,952 times.
  69. document type does not allow element "td" here, 40,645 times.
  70. there is no attribute "name", 39,828 times.
  71. there is no attribute "border", 39,069 times.
  72. end tag for element "td" which is not open, 38,553 times.
  73. reference to entity "type" for which no system identifier could be generated, 38,548 times.
  74. element "iframe" undefined, 38,229 times.
  75. end tag for element "span" which is not open, 36,688 times.
  76. the valign attribute on the td element is obsolete. Use CSS instead., 35,955 times.
  77. element "noindex" undefined, 35,183 times.
  78. document type does not allow element "li" here, 34,723 times.
  79. element "td" undefined, 34,008 times.
  80. element "variable" undefined, 33,992 times.
  81. the cellspacing attribute on the table element is obsolete. Use CSS instead., 33,090 times.
  82. the cellpadding attribute on the table element is obsolete. Use CSS instead., 32,300 times.
  83. end tag for "variable" omitted, but OMITTAG NO was specified, 32,142 times.
  84. the scrolling attribute on the iframe element is obsolete. Use CSS instead., 31,772 times.
  85. reference to entity "w" for which no system identifier could be generated, 31,699 times.
  86. reference to entity "h" for which no system identifier could be generated, 31,497 times.
  87. reference to entity "itemid" for which no system identifier could be generated, 31,319 times.
  88. character ";" not allowed in attribute specification list, 31,139 times.
  89. end tag for "tr" omitted, but OMITTAG NO was specified, 30,930 times.
  90. there is no attribute "type", 30,620 times.
  91. there is no attribute "align", 30,159 times.
  92. element "font" undefined, 29,676 times.
  93. the name and vi delimiter can be omitted from an attribute specification only if shorttag yes is specified, 29,542 times.
  94. end tag for element "options" which is not open, 29,330 times.
  95. reference to entity "title" for which no system identifier could be generated, 29,229 times.
  96. element "embed" undefined, 29,099 times.
  97. there is no attribute "size", 28,937 times.
  98. element p not allowed as child of element span in this context. (suppressing further errors from this subtree.), 28,691 times.
  99. end tag for "td" omitted, but OMITTAG NO was specified, 28,528 times.
  100. reference to entity "mibenumid" for which no system identifier could be generated, 26,944 times.

有兴趣的观众可以将以上 100 错误翻译成中文:)

本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)

最常犯的 HTML 标识错误 Top 100 的相关文章

  • 当 div 移动以填充其他淡出的 div 留下的空白空间时,如何为它们设置动画

    我有一组div 每个div对应一组类别 当我单击过滤器时 这将更改 div 的类 并根据这些类别使它们可见或隐藏 我控制 div 淡入 淡出的方式 它们做得缓慢而漂亮 但每次 div 消失时 保持不变的 div 会突然移动以填充隐藏的 di
  • 使用 python 将 bibtex 文件转换为 html (也许是 pybtex?)

    您好 我想解析 bibtex 出版物文件并对特定字段 例如年份 进行排序并过滤某些内容 然后将其放在网站上 我遇到了 pybtex 它可以读取和解析 bibtex 文件 但它基本上没有记录 我不知道如何对条目进行排序 pybtex 是可行的
  • html 元视口标签

    我建立了一个html登陆页面 你可以看到它here http tzabar exactive co il 我以这种方式使用元视口标签 当我从手机进入这个页面时 页面宽度不适合屏幕 iPhone 示例 http mobiletest me i
  • 将 DIV 堆叠在一起?

    是否可以堆叠多个 DIV 例如 div div div div div div div div div div 那么所有这些内部 DIV 都具有相同的 X 和 Y 位置吗 默认情况下 它们都在彼此下方 将 Y 位置增加了上一个 DIV 的高
  • 如何在 html 画布上使文本适合精确的宽度?

    如何在 html5 画布上将单行文本字符串调整为精确的宽度 到目前为止我尝试过的是以初始字体大小编写文本 测量文本的宽度measureText my text width 然后根据我想要的文本宽度和实际文本宽度之间的比例计算新的字体大小 它
  • :目标选择器不适用于选项标签

    我试图在这里帮助一位 StackOverflow 成员 我发现 CSS target选择器不适用于选项标签 我创建了一个示例来说明使用w3schools 教程 http www w3schools com cssref tryit asp
  • charset-utf8 和字符实体

    我建议将我的 windows 1252 XHTML 网页转换为 UTF 8 我的编码中有以下字符实体 39 撇号 9658 右指针 9668 左指针 如果我使用编辑器更改字符集并将页面保存为 UTF 8 撇号保留为字符实体 指针被转换为代码
  • 这个 HTML 结构有效吗? UL > DIV > { LI, LI } , DIV > { LI, LI } , DIV > { LI, LI }

    这个 HTML 结构有效吗 ul class blog category div class three column li Item 1 li li Item 2 li li Item 3 li div div class three c
  • 使用“切换”按钮切换日夜主题

    我已经实施了一个开关按钮在我的布局中并且想要使用 Android日夜主题使用按钮 dayNight 主题工作正常 但问题是 当我点击开关它不会立即起作用 我必须改变活动然后它就起作用了 例如如果我在一个活动中单击开关 它不会执行任何操作 直
  • 如何在运行时更改按钮的颜色? [复制]

    这个问题在这里已经有答案了 button1 Button root text A1 width 8 grid row 0 column 0 button2 Button root text A2 width 8 grid row 0 col
  • CSS 样式在部分回发时停止工作

    在 ASP net C 应用程序中 我有一个带有自定义 css 的复选框 CSS 文件是 复选框
  • 能够使用 Bootstrap 3 网格系统指定选择元素的宽度

    我有以下内容
  • JSF 不呈现自定义 HTML 标记属性

    我想向我的登录表单添加一些 iOS 特定的标签属性 如果我查看我的网页源代码 就会发现自动更正 自动大写和拼写检查属性不存在 这是什么原因呢 我正在使用 JSF 2 x
  • Twitter Bootstrap - 下拉菜单 - 箭头键不适用于 Firefox 中的输入标签

    要求 我想在带有用户名和密码字段的下拉菜单中放置一个登录表单 我可以做到这一点 除了以下问题之外 一切正常 Issue 打字时我无法使用箭头键 上 下 firefox 当输入位于下拉代码之外时 这很有效 这适用于其他浏览器 例如 googl
  • 如果 CSS 是渲染阻塞的,为什么我们会看到 FOUC?

    为了构建渲染树 浏览器需要 DOM 和 CSSOM CSSOM 只有在下载 CSS 后才能构建 本质上 一旦下载了 CSS 页面就应该可以正常渲染了 但是 为什么我们会在页面上看到 Flash Of Unstyled Content FOU
  • 如何防止输入文本中出现“后重音”

    我相信这是一个简单的问题 但在谷歌上搜索几个小时后我找不到任何答案 也许我无法在搜索中使用正确的单词 P 我有一个 javascript 方法 可以防止用户用数字以外的其他字符填充文本框 如下面的代码所示 它在 KeyDown 事件中使用
  • IE localStorage 事件失火

    在 Internet Explorer 9 和 10 中 localStorage 实现意外地触发事件 这里有很棒的线索 Chrome 的 localStorage 实现存在错误 https stackoverflow com questi
  • 从检查元素隐藏 ''

    我有这个 HTML 和 PHP 联系表
  • 在“onClick”上切换 DIV 高度

    我想切换分区的高度 我尝试过将 animate 与 if else 语句一起使用 但它只会反弹 我现在使用的代码将隐藏我的分区而不是切换高度 点击时会触发 document ready function content1 toggle fu
  • 从后面的代码添加外部 css 文件

    我有一个 CSS 文件 例如 SomeStyle css 我是否可以将此样式表文档从其代码隐藏应用到 aspx 页面 您可以将文字控件添加到标头控件中 Page Header Controls Add new System Web UI L

随机推荐

  • 微信小程序wx.getUserProfile接口获取用户信息的使用

    前言 调整原因 很多开发者在打开小程序时就通过组件方式唤起getUserInfo弹窗 如果用户点击拒绝 无法使用小程序 这种做法打断了用户正常使用小程序的流程 同时也不利于小程序获取新用户 调整策略 推荐使用 wx getUserProfi
  • 【Seata】03 - Seata AT 模式全局锁相关知识简单整理

    文章目录 前言 参考目录 版本说明 分析整理 1 全局锁的引入说明 2 全局锁相关源码整理 2 1 流程简图 2 2 事务分支注册前的 SQL 相关操作 2 3 注册分支 获取全局锁 前言 上一篇文章介绍了 AT 模式的调用流程 但是有个比
  • Unity位置动画

    1 场景中创建一个Cube 2 为这个Cube添加Animator组件 3 选中这个Cube 然后选择Window Animation 打开animation窗口 下面就开始K关键帧了 很简单 两步走 1 选中这个Cube对象 在第0帧 移
  • Java读取.zip文件为ZipInputStream,并读取压缩文件。

    最近遇到一个需求 要调取接口获取一个zip文件流 解析zip包 读取启动的文件内容来进行业务处理 以下是处理读取zip压缩包方法 话不多说直接上代码 读取zip文件流 解析压缩文件 public static void main Strin
  • 【blockly教程】第一章 Google Blockly教学应用手册

    1 1 Google Blockly概述 美国计算科学教育一直认为计算机作为当今各个领域的基础技术工具 有必要让学生尽早的了解和学习计算机工作原理 理解基础的编程思维 在2006年周以真教授提出计算思维概念 这很大程度上促进了人们对计算机编
  • POI getDataFormat() 格式对照

    2019独角兽企业重金招聘Python工程师标准 gt gt gt 参照org apache poi ss usermodel BuiltinFormats的说明 Open Declaration org apache poi ss use
  • C#获得DataGrid单元格的值

    WPF中的DataGrid控件类似于WindowsForm中的DataGridView 但是DataGridView中的单元格值获取非常简单直观 如下 string cellvalue datagridview Rows rowindex
  • RuntimeError: CUDA error: device-side assert triggered

    RuntimeError CUDA error device side assert triggered解决办法 这是由于数据标签默认是从0开始的 比如标签类别为5类 默认是 0 1 2 3 4 而自己是 1 2 3 4 5 只需要在标签数
  • Scala的基础语法(超详细版)

    Scala的基础语法 文章目录 Scala的基础语法 1 声明值和变量 2 数据类型 3 算术和操作符重载 4 控制结构语句 4 1条件分支语句 4 2循环语句 5 方法与函数 5 1方法 5 2 函数 5 3 方法转换成函数 1 声明值和
  • python爬虫-北京租房可视化分析

    目的 使用scrapy框架爬取租赁信息 对数据进行处理利用python中的seaborn matplotlib库进行可视化分析 最后查看昌平区待租量排前十小区对应地铁站点 及其平均租房价格 1 爬虫 使用scrapy框架爬取beike租房信
  • chatGPT做算法题

    今天突发奇想 自己编了一道算法题让newbing和chatgpt做 问newbing后 没搜索到相关内容 回复无法理解题目 问chatGPT后给出了回答 见下图 一开始我很震惊 算法居然如此简洁 我知道这个题可以用动态规划解 但是算法也没有
  • CocosCreator查找图片引用

    相信大家可能需要查找图片在哪个Prefab中使用到 于是我们像下图这样查找一下 查找的时候CocosCreator会给出我们查找的图片资源的uuid 比如 我的uuid 33a791ca 5a28 4c2a b451 7c6b8f9a037
  • 简单C语言两数相加

    在C语言中 相加两数是一个基本的要求 但其实也有复杂操作 比如高精度加法 或者链表相加 还要考虑进位 都是比较难的 那么今天我们来聊一聊简单的problem a b 先发代码 include
  • hiveSQL基本语句三-----连接查询--inner join、left join、full join、union all、union

    一 inner join 连接2个表 取出公共部分 必须重命名 on后连接条件键值唯一 连接前注意去重 提高效率 inner可省略 select from user list 1 as a inner join user list 2 as
  • keras图像风格迁移

    风格迁移 在内容上尽量与基准图像保持一致 在风格上尽量与风格图像保持一致 1 使用预训练的VGG19网络提取特征 2 损失函数之一是 内容损失 content loss 代表合成的图像的特征与基准图像的特征之间的L2距离 保证生成的图像内容
  • 创客教育的法则

    认为创客教育顾名思义是创造客户价值的意思 那可就错了 创客是教育培训行业里的一个专用名词 属于新型创新的模式 格物斯坦提醒 想要进行创客教育的学生 老师以及家长们 要谨慎选择合适的创客教育培训机构 这样才能万无一失 核心注重课程体系的自主研
  • vscode+gcc+jlink调试mcu程序(用于替代IDE)

    一 前言 几年前写过一篇类似的文章 那时是用于调试rtthread系统 使用 VSCode arm none eabi gdb J Link GDB Server 调试RTThread 当时有关vscode和gcc调试MCU的文章很少 所以
  • golang中数组和切片的区别与联系

    golang中数组和切片的区别 切片时指针类型 数组是值类型 数组的长度是固定的 而切片不是 切片是动态的数组 切片比数组多一个属性 容量 cap 切片的底层是数组 既然一个是指针类型 一个是值类型 那么区别体现在哪里呢 看下这个例子 nu
  • 思科模拟器Cisco Packet Tracer安装指南

    前言 本篇为思科模拟器Cisco Packet Tracer的官方英文正版安装指南 官方英文正版虽然可以免费使用 但是要登录思科账户 账户同时登录思科旗下的网络学院并订阅课程和完善个人资料 本篇会教你怎么一步一步去完成这些 而且绝大部分还是
  • 最常犯的 HTML 标识错误 Top 100

    国外的一个网站 W3CLove 最近对在其网站上进行的 45 万的网页验证进行统计 下面是最频繁的错误和警告列表 W3CLove是一个用来验证网页编写是否规范的在线网站 不过用它来测试 oschina 页面的时候 提示错误 Sorry we