我在一个项目中工作,我必须验证整个网站,其中有大约150页,通过W3C标记验证。有没有办法检查整个网站的W3C标记验证?
发布于 2012-01-19 17:07:06
W3C在w3.org上没有提供这个。
http://validator.w3.org/docs/help.html#faq-batchvalidation
但是您可以使用此工具和检查“验证整个站点”:( w3.org也指此站点!)
但您需要验证的限制为100个,当您达到100个URL时,将收到以下消息:
Batch validation is limited to 100 URLs at one time. The remaining URLs were not checked.
此外,对于每个url显示的错误也有一个限制。
发布于 2013-04-18 05:36:42
发布于 2018-02-19 21:40:02
您可以自己运行验证器。截至2018年,W3C正在使用v.Nu作为其验证器,代码位于https://github.com/validator/validator/releases/latest,使用说明位于https://validator.github.io/validator/#usage
例如,以下命令将在public_html目录下的所有html文件上运行它:
java -jar vnu.jar --skip-non-html public_htmlhttps://stackoverflow.com/questions/8922014
复制相似问题