国外的一个网站 W3CLove ,最近对在其网站上进行的 45 万的网页验证进行统计,下面是最频繁的错误和警告列表。
W3CLove是一个用来验证网页编写是否规范的在线网站,不过用它来测试 oschina 页面的时候,提示错误:
Top 100 errors list
- required attribute "alt" not specified, 1,392,075 times.
- & did not start a character reference. (& probably should have been escaped as &.), 764,450 times.
- end tag for "img" omitted, but OMITTAG NO was specified, 663,765 times.
- end tag for "br" omitted, but OMITTAG NO was specified, 502,366 times.
- an attribute value specification must be an attribute value literal unless shorttag yes is specified, 463,999 times.
- an attribute value must be a literal unless it contains only name characters, 337,970 times.
- required attribute "type" not specified, 293,050 times.
- document type does not allow element "div" here; missing one of "object", "applet", "map", "iframe", "button", "ins", "del" start-tag, 274,987 times.
- document type does not allow element "p" here; missing one of "object", "applet", "map", "iframe", "button", "ins", "del" start-tag, 202,423 times.
- document type does not allow element "li" here; missing one of "ul", "ol", "menu", "dir" start-tag, 196,060 times.
- 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.
- end tag for "input" omitted, but OMITTAG NO was specified, 160,066 times.
- end tag for "p" omitted, but OMITTAG NO was specified, 142,452 times.
- end tag for "ul" which is not finished, 142,081 times.
- end tag for element "a" which is not open, 115,545 times.
- document type does not allow element "div" here; missing one of "applet", "object", "map", "iframe", "button" start-tag, 115,358 times.
- end tag for "li" omitted, but OMITTAG NO was specified, 101,451 times.
- element "div" undefined, 98,741 times.
- reference to entity "action" for which no system identifier could be generated, 93,877 times.
- document type does not allow element "link" here, 91,422 times.
- document type does not allow element "a" here, 84,233 times.
- reference to entity "id" for which no system identifier could be generated, 82,970 times.
- document type does not allow element "div" here; missing one of "object", "ins", "del", "map", "button" start-tag, 82,761 times.
- end tag for element "div" which is not open, 82,144 times.
- 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.
- document type does not allow element "li" here; missing one of "ul", "ol" start-tag, 77,854 times.
- character data is not allowed here, 73,051 times.
- there is no attribute "width", 72,246 times.
- attribute property not allowed on element meta at this point., 72,024 times.
- end tag for "meta" omitted, but OMITTAG NO was specified, 71,601 times.
- document type does not allow element "style" here, 70,476 times.
- reference to entity "nbsp" for which no system identifier could be generated, 69,629 times.
- reference to entity "widgetid" for which no system identifier could be generated, 69,565 times.
- syntax of attribute value does not conform to declared value, 66,937 times.
- element meta is missing one or more of the following attributes: http-equiv, itemprop, name., 65,735 times.
- document type does not allow element "meta" here, 64,134 times.
- reference to entity "cat" for which no system identifier could be generated, 60,781 times.
- there is no attribute "height", 60,035 times.
- end tag for "div" omitted, but OMITTAG NO was specified, 59,892 times.
- an attribute specification must start with a name or name token, 59,374 times.
- bad value category tag for attribute rel on element a: keyword category is not registered., 58,762 times.
- consecutive hyphens did not terminate a comment. -- is not permitted inside a comment, but e.g. - - is., 57,425 times.
- document type does not allow element "div" here, 56,466 times.
- reference to entity "widgettype" for which no system identifier could be generated, 54,850 times.
- document type does not allow element "option" here, 54,802 times.
- reference to entity "sectionid" for which no system identifier could be generated, 53,532 times.
- value of attribute "align" cannot be "absmiddle"; must be one of "top", "middle", "bottom", "left", "right", 52,637 times.
- element "g:plusone" undefined, 50,184 times.
- end tag for "link" omitted, but OMITTAG NO was specified, 50,006 times.
- reference to entity "postid" for which no system identifier could be generated, 48,854 times.
- character "/" is not allowed in the value of attribute "id", 47,406 times.
- document type does not allow element "script" here, 47,169 times.
- document type does not allow element "p" here; missing one of "object", "ins", "del", "map", "button" start-tag, 47,167 times.
- element "br" undefined, 46,530 times.
- NET-enabling start-tag not immediately followed by null end-tag, 45,105 times.
- there is no attribute "src", 44,667 times.
- end tag for element "p" which is not open, 44,416 times.
- document type does not allow element "tr" here, 44,374 times.
- there is no attribute "href", 43,999 times.
- there is no attribute "target", 43,848 times.
- the width attribute on the td element is obsolete. Use CSS instead., 43,173 times.
- element "a" undefined, 42,579 times.
时间:2012-06-16 19:41 来源:oschina 作者:oschina 原文链接