Html 简明教程
HTML - Validation
HTML validator 是一个工具,它可以解析每一行代码以查找语法错误,并检查 HTML 和 CSS 代码是否符合万维网联盟 (W3C) 制定的最新标准。
An HTML validator is a tool that parses each line of code in order to find syntax errors and to check whether the HTML and CSS codes comply with the latest standards set by the World Wide Consortium (W3C).
最常用的验证器如下所示:
The most frequently used validators are as follows −
The W3C Markup Validator
W3C Markup Validator 检查 HTML、XHTML、SMIL、MathML 等中的 Web 文档的标记有效性。此验证器是 W3C 统一验证服务 Unicorn 的一部分。
The W3C Markup Validator checks the markup validity of Web documents in HTML, XHTML, SMIL, MathML, etc. This validator is part of Unicorn, W3C’s unified validator service.
要对 HTML 使用此验证器,您需要使用 More Options 并选择 Document Type 作为 HTML (experimental) ,如下所示。
To use this validator for HTML, you need to use More Options and select Document Type as HTML (experimental) as shown below.
The Validator.nu (X)HTML Validator
以下是另一个当前已知的 HTML5 验证器:Henri 的 Validator.nu (X)HTML5 Validator (高度实验性)
Here is the another currently known HTML5 validators: Henri’s Validator.nu (X)HTML5 Validator (Highly Experimental) −