valid HTML is something we should strive to achieve.
W3C Validator is an invaluable tool to do just that.
unfortunately, validating a local file you are working on can be annoying after the 100th time you’ve uploaded it to the W3C website.
Here you can find a command line HTML validator that simply uploads anything passed to it from stdin to the W3C Validator.
The basic syntax is:
$> python validate.py < file_to_validate.html
Note: before using the file, rename it from validatepy.pdf to validate.py. unfortunately, I’m not allowed to post .py files on this website…