Take the 2-minute tour ×
Webmasters Stack Exchange is a question and answer site for pro webmasters. It's 100% free, no registration required.

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:

http://webmasters.stackexchange.com/questions/1802/how-can-i-validate-html-offline

share|improve this question
add comment

4 Answers

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

share|improve this answer
    
I like tidy, is it as comprehensive as the W3C tool? –  Casey Aug 21 '10 at 1:51
add comment

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

share|improve this answer
    
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
add comment

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.

share|improve this answer
    
I think this is it: dvcs.w3.org/hg/markup-validator –  robertc Aug 19 '10 at 11:46
1  
validator.w3.org/source/#getting –  Casey Aug 20 '10 at 23:55
1  
The W3C Markup Validator is a Perl wrapper around a C validation engine. –  Quentin Aug 21 '10 at 13:20
add comment

Total Validator seems to do what you're looking for

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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