Trying to debug a missing close paragraph tag somewhere in a 300 line web page, I came across Tidy which helped with it's -e flag to report errors and warnings.

It did not find some problems identified by the W3C validator, however. I probably need to also try the instructions for off-line use of the validator for the purposes of CI.