HTML tidy is a command line tool which automatically checks html/xhtml/xml pages for mistakes and tidy up sloppy editing into nicely layed out markup. The tool can be used for a very wide range of platforms.
Originally created by Dave Raggett and now maintained by the open source community at Source Forge.
HTML tidy is distributed at no charge for commercial or non-commercial use and made available under the W3C license.
The latest HTML tidy version can be downloaded from: http://tidy.sourceforge.net
The HTML tidy configuration options quick reference can be found at: http://tidy.sourceforge.net/docs/quickref.html
Using HTML Tidy.
Information
All infomation mentioned in the tables below are based on the HTML Tidy version for Windows released on 1st January 2004.
Operating system used
Windows XP Home Edition Version 5.1 SP 2
Software prerequisites
HTML Tidy
Procedure
- To start using HTML tidy the following can be entered in a DOS window:
tidy -h
It displays a list of command line options and how to use HTML tidy. A few interesting options can be found in the table below.
| -version or -v |
show the version of Tidy |
| -help, -h or -? |
list the command line options |
| -help-config |
list all configuration options |
| -show-config |
list the current configuration settings |
- There are several ways to use HTML tidy to validate a single or multiple htm files. In the table below several methods are described.
|
|