libhtml-lint-perl | Check for HTML errors in a string or file | Mehr ...
HTML::Lint is a pure-Perl HTML parser and checker for syntactic legitmacy. . The "weblint" script - provided in the separate package "weblint-perl" - is a wrapper around the HTML::Lint. . You can also look into Apache::Lint which is a mod_perl wrapper around HTML::Lint. . Finally, for those of you doing automated testing with Test::More and its brethren, Test::HTML::Lint lets you automate HTML checking.
weblint-perl | A syntax and minimal style checker for HTML | Mehr ...
This is a perl script which picks fluff off html pages, much in the same way traditional lint picks fluff off C programs. . The script is a complete rewrite of Neil Bowers' original weblint script. It currently supports HTML 4.0 (and only HTML 4.0).