Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.
As you test the features of your web applications, you also may want to make sure the HTML content that your code produces conforms to the standards set by the World Wide Web Consortium (http://www.w3.org/). Coding to standards makes your site cleaner, easier to maintain, and more accessible from a variety of browsers and clients, especially for users with disabilities.
The Test::HTML::Tidy module provides a single function, html_tidy_ok( ), that checks the completeness and correctness of an HTML document. Save the following code as tidy.t: