Validating web pages and contents like HTML, JavaScript, and CSS are important for web sites and application owners. As they are popular technologies they have a lot of different implementations where they can be a bit different from the standard. W3C provides a validator to check and provide feedback about the given web page.
验证网页和HTML,JavaScript和CSS等内容对于网站和应用程序所有者非常重要。 由于它们是流行的技术,因此它们具有许多不同的实现方式,它们与标准可能有所不同。 W3C提供了一个验证器来检查并提供有关给定网页的反馈。
什么是W3C(万维网联盟)? (What is W3C (World Wide Web Consortium)?)
World Wide Web Consortium (W3C) is an international community where its members, staff try to drive Web standards forward. The main standard W3C working is HTML which is created by Tim Berners-Lee. As a standardizing entity, W3C provides standards and tools to set and check HTML. W3C provides HTML, JavaScrip and CSS validator for web pages.
万维网联盟(W3C)是一个国际社区,其成员,工作人员试图推动Web标准向前发展。 W3C的主要标准工作是由Tim Berners-Lee创建HTML。 作为一个标准化实体,W3C提供了用于设置和检查HTML的标准和工具。 W3C为网页提供HTML,JavaScrip和CSS验证器。
W3C验证器 (W3C Validator)
The W3C Markup Validator is provided from the Markup Validation Service page. We can see that the W3C Markup Validation service provides some options about delivering web pages and the validation configuration.
W3C标记验证器是从“标记验证服务”页面提供的。 我们可以看到W3C标记验证服务提供了一些有关交付网页和验证配置的选项。

验证交付方式/方法(Validation Delivery Ways/Methods)
From the screenshot, we can see that a web page can be delivered in 3 different ways.
从屏幕截图中,我们可以看到可以以3种不同方式交付网页。
通过URI / URL验证 (Validate By URI/URL)
Validate by URI
will accept the URI or URL of the web page on the internet. Then we will click to the Check
button. This delivery method is also the default and most popular way. In this example, we will check the www.poftut.com web page which is Poftut’s home page.
Validate by URI
将接受Internet上网页的URI或URL。 然后,我们将单击“ Check
按钮。 这种传递方法也是默认的也是最流行的方法。 在此示例中,我们将检查Poftut主页的www.poftut.com网页。

通过文件上传验证(Validate By File Upload)
We can also deliver the web page from the local system by uploading it to the Markup Validation Service. We will select the Validate by File Upload
and then click to the check. Keep in mind that some Internet Explorer versions may not work with this method.
我们还可以通过将网页上传到标记验证服务来从本地系统交付该网页。 我们将选择“ Validate by File Upload
,然后单击以进行检查。 请记住,某些Internet Explorer版本可能不适用于此方法。

通过直接输入验证(Validate By Direct Input)
We can also provide the Markup Code (HTML, JavaScript, CSS) directly to the text editor of the Markup Validation Service. We will use Validate by Direct Input
like below.
我们还可以直接将标记代码(HTML,JavaScript,CSS)提供给标记验证服务的文本编辑器。 我们将使用如下所示的“ Validate by Direct Input
。

HTML /标记验证选项(HTML/Markup Validation Options)
We have learned the methods to validate HTML/Markup. But there are some options that can be used during validation. We can list these options by clicking to the More Options
like below.
我们已经学习了验证HTML /标记的方法。 但是在验证过程中可以使用一些选项。 我们可以通过单击下面的“ More Options
来列出这些选项。