Tidy Up With HTML Tidy
HTML Tidy cleans and pretty prints your HTML.
Web sites are rarely maintained by the same person over a long period of time. Much more often, web pages pass from developer to developer. And since the skill (and style) of developers can differ greatly, a site’s HTML can grow to be inconsistent, even ugly, sloppy, and non-compliant with standards.
If you inherit such dubious HTML, you may long for a tool to help clean up and validate the code. Luckily, such a tool exists: it’s called
HTML Tidy and it’s available from
http://tidy.sourceforge.net/. HTML Tidy can automatically fix a wide range of coding errors and can also tidy up sloppy editing into nice-looking markup (often called
pretty printing). HTML Tidy can even make the (often extremely ugly) output from specialized HTML editors such as
Frontpage readable by a human.
HTML Tidy was originally written by Dave Raggett and is licensed under the W3C license.
After downloading and unpacking the source tarball, run…
$ /bin/sh build/gnuauto/setup.sh
… from the top source directory. You can now use the normal ./configure&&make&&make install process to complete the installation, leaving you with the utility tidy.