informit.com — Anything that operates on an HTML document, be it a browser, a CSS stylesheet, an XSL transformation, a JavaScript program, or something else, will have an easier time working with a well-formed document than the malformed alternative. This chapter covers the mechanics and trade-offs of well-formedness as it is usually apply in HTML.