HTML Tidy

HTML Tidy is a computer program and a library whose purpose is to fix invalid HTML and to improve the layout and indent style of the resulting markup.

It was developed by Dave Raggett of World Wide Web Consortium (W3C), then transferred to a SourceForge project. Its source code is written in ANSI C for maximum portability and precompiled binaries are available for a variety of platforms. It is available under the W3C license (a permissive, BSD-style license). New versions are available only under CVS (Concurrent Versions System, a version control system), not binary.

Examples of fixes it can make to bad HTML:

  • Straighten mixed-up tags
  • Fix missing or mismatched end tags
  • Add missing items (some tags, quotes, ...)
  • Report proprietary HTML extensions
  • Change layout of markup to predefined style
  • Transform characters from some encodings into HTML entities

Famous quotes containing the word tidy:

    When the Somalians were merely another hungry third world people, we sent them guns. Now that they are falling down dead from starvation, we send them troops. Some may see in this a tidy metaphor for the entire relationship between north and south. But it would make a whole lot more sense nutritionally—as well as providing infinitely more vivid viewing—if the Somalians could be persuaded to eat the troops.
    Barbara Ehrenreich (b. 1941)