Validate and clean up HTML files with modern web standards support.
Granddaddy of HTML tools, with support for modern standards
tidy
$ tidy -m input.html
$ tidy -asxml input.html
$ tidy input.html
$ tidy -i -m input.html
$ tidy -utf8 -m input.html