Monday, February 21 2005 @ 06:22 PM EST Contributed by: glosser
Linux.com presents this tutorial on a command line program that checks HTML code for errors.
I've been writing online for years, but there are still things I need help with in order to make my words production-ready. Not just the grammar and spelling, mind you, but with standards-compliant HTML. This week we'll take a look at a wonderful command-line tool that fixes my HTML errors and also makes it pretty. It's called HTML Tidy. Shut down OpenOffice.org or whatever word processor you've been using to generate GUI-contaminated HTML, and let's take a look.
HTML Tidy is the creation of Dave Raggett, who has been involved in the development of HTML itself almost from the beginning. At present, he is working on voice-controlled browsing at W3C. These days, the HTML Tidy project is maintained by a group of developers in order to provide a central depository for patches, but to extend the project's reach by providing a library of HTML Tidy functions.
Here is a sample of the Pidgin-HTML I typically create when writing an article. It's very bare-bones, as you can see.