Why Validate?
Because XHTML requires that documents be both well-formed and valid, and validity itself requires well-formedness, one check can ascertain that a document conforms to both. Practically, validating your documents provides the experienced Web author benefit in finding errors that were unintentional, such as typos or a forgotten closing tag.
Typo Control
One of the most rudimentary uses of validation is to catch some of the simple problems, such as typographical errors. Any developer who's not using an authoring tool that creates tags for him is bound to make a few typos in any given document. Rather than having to painstakingly read each page for problems, a quick pass through the validator can point them out in seconds (see Figure ...
Get XHTML by Example now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.