鹏讯科技

Pensee 站点验证

出自鹏讯文档

目录

xhtml-css.com

http://www.xhtml-css.com/check#

Same colors for color and background-color in two contexts #webdesign .gallery a:hover and a 前后(背景)颜色一样(警告)。

浏览器显示测试

http://browsershots.org/http://pensee.net.cn/

validome validate

http://www.xhtml-css.com/check

css 报告 opacity 不属于 css2 属性(我在 w3c profile css3 通过)

http://www.validome.org/validate

When using style attributes, you must specify the style language within a META element
(<meta http-equiv="Content-Style-Type" content="text/css" />)
and/or within HTTP-Header (Content-Style-Type: text/css).

使用 inline style 的时候也要声明!!!有的验证器甚至不允许使用 div style="xxx" 这样的 inline 样式。

The Link "#1" points to a not existing Anchor. The Link "#2" points to a not existing Anchor.

在 img slide 使用 <a href="#1"> 这是不好的。#1 指向了不存在的锚点。本来想用 a href="javascript:void(0)",但在 ie6 会破坏 jquery 赋予的事件。

W3C mobile 验证

http://validator.w3.org/mobile/

错误很多。

A "javascript:" link is used

Invalid HTTP response received (network-level error, DNS resolution error, or non-HTTP response)

The document does not validate against XHTML Basic 1.1 or MP 1.2.

图片不给高宽,下载完后会重画页面,用户体验不好 Either the height or width attribute is missing

以下标签已经不推荐使用了(不够 sematic) The documents uses one of b, big, i, small, sub, sup or tt elements

内联(inline)样式表还有使用的必要吗?(主要是为了调试方便,嘿嘿...) The style attribute is used

页面超过20k了 The total size of the page (98.6KB) exceeds 20 kilobytes (Primary document: 28.2KB, Images: 69.1KB, Style sheets: 1.3KB)

超过20个 HTTP requests 了,手机可能要20秒以上时间才能显示 There are more than 20 embedded external resources

纯html文件超过 10k The size of the document's markup (28.2KB) exceeds 10 kilobytes

手机对js支持有限,要保证即使没有js也要能显示

The document uses scripting

反对使用 pt,px 之类绝对尺寸css A length property uses an absolute unit

使用了非 utf-8的编码 The resource does not specify UTF-8 as character encoding

position float 这些东西不推荐,没有样式表应该也可读才行 The CSS style sheet contains rules referencing the position, display or float properties

@ 可能不支持,尽量css1 The CSS Style contains at-rules, properties, or values that may not be supported

不是所有手机都支持png The embedded image or object is not of type image/gif or image/jpeg (image/png)

有个全透明的图片 There is a small fully transparent image

没有设置缓存过期时间 The document is served without caching information ("Expires" or "Cache-Control" header)

没有伺服成 "application/xhtml+xml"(关键是ie6这沙茶会提示下载网页!) The document is not served as "application/xhtml+xml"

少转向 HTTP status code 3xx (Redirection) received and the HTTP Location header targets a relative URI

进入需要验证的地方,要给用户个提示 HTTP status code 401 (Unauthorized) received for a linked resource

链接到非 utf-8 站点的时候,提前转义可能导致错误 The linked resource character encoding may not be appropriate for mobile devices

#1 这样的链接不推荐 The fragment reference has no matching target

Consider adding an inputmode attribute to this input element.

设计部分的不合理之处

  • 类似 行业动态、网站建设、SEO 栏目标签页,标题部分和列表部分分离,在无样式表状态下,不合理。
  • 中文编码


'zh' => '原文', 'zh-hans' => '简体', 'zh-hant' => '繁體', 'zh-cn' => '大陆', 'zh-tw' => '台灣', 'zh-hk' => '香港', 'zh-mo' => '澳門', 'zh-sg' => '新加坡', 'zh-my' => '大马',

FAE

h1 部分的文字要包含 title 的全部或者部分内容

The text content of each h1 element should match all or part of the title content.

小于 8 像素的图片不应该在 html 中出现,应用css来显示它。警告:有一张图片似乎是用来装饰用的。(img ajax loading 部分用了 spacer.gif 来提前占位。应该用 js 处理)

Each img element with width or height less than 8 pixels should be removed; CSS techniques should be used instead. Warn: 1 image appears to be decorative based on its dimensions;

WAVE report

http://wave.webaim.org/

“更多内容”这样的链接文字没有“意义”,并且页面中多个 “更多内容”链接到不同地址。

Link text does not make sense out of context, contains extraneous text (such as "click here"), or is the same as another link on the page, but links to a different location.

链接文字部分相同链接不同。tag部分和上面导航文字一样!链接不同

Link text does not make sense out of context, contains extraneous text (such as "click here"), or is the same as another link on the page, but links to a different location.

xhtml css 验证部分

Mediawiki:common.css 导致 Encountered: "D" (68), after : "<!" 错误

textarea 也必须有 label

Identify all TEXTAREA elements that do not have an explicit LABEL association.

a 的文字部分一样但链接地址却不同!这是不允许的。

All Anchor elements are required not to use the same link text to refer to different resources.

img alt 最好7-81个字符,太短也警告

Validate that Alternative Text is greater than 7 and less than 81 characters in length Short alternative text may not be valid, warn the report user if alternative text was found that is less than seven characters in length. Additionally alternative text should not be larger than 80 characters, if the alt text is greater the long description attribute should be used. This check validates that the alt attribute does not exceed 80 characters in length.

input 不允许给默认值;input text 必须有 label,并且必须 for="id"

Warning - INPUT Element, of Type TEXT, found at Line: 40, Column: 41 contains a non-empty 'value' attribute. This is a practice referred to as "self-labeling." Self-Labeling is argued to be accessible under Priority One or Section 508 guidelines/standards. We recommend using a Label as the Preferred method or the use of an 'alt' attribute to make this element accessible.

页面必须有 meta description keywords language 三个

  • Failure - Document does not contain a META element with the required name: description or description does not have a 'content' value.
  • Failure - Document does not contain a META element with the required name: keywords or keywords does not have a 'content' value.
  • Failure - Document does not contain a META element with the required name: language or language does not have a 'content' value.

链接不能连续(中间没有任何其它字符)

Until user agents (including assistive technologies) render adjacent links distinctly, include non-link, printable characters (surrounded by spaces) between adjacent links. Rule: 10.5.1 - All Anchor elements not surrounding images cannot be directly adjacent.

  • Failure - Anchor Element found at Line: 89, Column: 1 is directly adjacent to the Anchor element that precedes it.
  • Failure - Anchor Element found at Line: 91, Column: 1 is directly adjacent to the Anchor element that precedes it.
  • Failure - Anchor Element found at Line: 93, Column: 1 is directly adjacent to the Anchor element that precedes it.

相关资料:

W3C 推荐 DTD 文件头

个人工具
站点导航
Lib
validated XHTML 1.0 - CSS 3- Section 508
Copyright © 2002-2010 陕西鹏讯科技 版权所有