W3C validation for complete site [closed]

泪湿孤枕 提交于 2019-12-05 20:25:38

问题


I am working on a project where I have to validate the complete site, which has around 150 pages, through W3C Markup Validation. Is there a way to check W3C Markup Validation of an entire website?


回答1:


The W3C doesn't offer this on w3.org.

http://validator.w3.org/docs/help.html#faq-batchvalidation

But you can use this tool and check "Validate entire site": (Also w3.org refers to this site!)

  • http://www.htmlhelp.com/tools/validator/

But you have a limit of 100 URLs to validate and will get this message when you reach 100 URLs:

Batch validation is limited to 100 URLs at one time. The remaining URLs were not checked.

Also there's a limit of errors displayed for each url.




回答2:


The WDG offers two free solutions:

  1. Validate entire site (select 'validate entire site')
  2. Validate multiple URLs (batch)



回答3:


You can run the validator yourself. As of 2018, W3C are using v.Nu for their validator, the code is at https://github.com/validator/validator/releases/latest and usage instructions are at https://validator.github.io/validator/#usage

For example, the following command will run it on all html files under the public_html directory:

java -jar vnu.jar --skip-non-html public_html



回答4:


I've used http://sitevalidator.com; I think it would be helpful to you.




回答5:


I use this tool bulk w3c html validator to validate my entire website

http://www.bulkseotools.com/bulk-w3c-validator.php

This tool uses W3c validator engine, you can check 500 urls at once.




回答6:


I made this java app (Windows installer) in my spare time because I needed it at work: https://grovensoftware.com/validator. It's free.

It uses either https://validator.w3.org/ or v.Nu running locally to validate an entire site.

It crawls a website and in the end makes a report with validator-links to all pages with warnings or errors. Because it crawls, all pages to be validated must be linked.

By running v.Nu locally you can validate an internal site (e.g. an intranet) which is not available online and therefore cannot be validated by online validators (unless you post the entire content of each page).



来源:https://stackoverflow.com/questions/8922014/w3c-validation-for-complete-site

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!