7

What programs can I use to validate HTML/XML markup?

Basically, I want a local, command-line based, version of W3C HTML validation service (like lint) that I can use for detecting errors.

Update

I would also accept a solution that uses the W3C web service from the command line.

Related Questions:

How can I validate HTML offline?

4

The W3 validator is open source (written in Python I believe) so you can download and run it locally. I can't for the life of me find the download link on w3.org though.

4

HTML Tidy, developed by Dave Raggett of W3C, can validate & automatically fix errors. It can work from the command-line

  • I like tidy, is it as comprehensive as the W3C tool? – cmcginty Aug 21 '10 at 1:51
2

Total Validator seems to do what you're looking for

0

The HTML5 validator source code is available through SVN, has dependencies on Java.

  • What do you mean by "the"? That's not an official program, is it? – DisgruntledGoat Aug 19 '10 at 14:07
  • @DisgruntledGoat It's the only one linked to from the WHATWG website: validator.whatwg.org – robertc Aug 19 '10 at 14:48

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.