How Tidy Works
Tidy fixes a number of common, and not so common, mistakes in HTML files. It does this by analyzing the markup in a file and comparing it to the HTML 4.01 specification. Depending on the options you specify, Tidy can fixes the problems it finds or it can generate a log detailing the errors.
The range of problems Tidy can fix is impressive. It can add missing or mis-matched end tags, correct tags that are in the wrong order, insert quotes around attributes, and can even add missing > to a tag. One of the few things Tidy can't do is add SUMMARY

