Test Your HTML with the W3C Markup Validation Service
A co-worker asked me today about an issue in a Web app in which pages display correctly in IE 6.0 but incorrectly in IE 5.5. He could duplicate the problem in IE 6.0 by changing the page’s <DOCTYPE> tag. Sometimes issues like this are due to rendering engine differences (or bugs) in various browsers. However, I very often see developers test the code and functionality of their Web pages, but fail to test the HTML.
There are far too many Web pages out there that have broken and/or sloppy HTML. I know, I know, you have a deadline to meet and as long as it works on your computer it’s fine, right? Hopefully that’s not your attitude. There’s an excellent, free tool from the W3C that can quickly and easily validate your HTML and give you a list of errors and issues. You can quickly jump to the trouble spots and make corrections.
The W3C (World Wide Web Consortium)’s free Markup Validation Service can validate HTML, XHTML, MathML, SMIL and SVG documents, and it is still being tweaked and improved. I highly encourage you to add it to your Web development toolkit.
Also, check out Web Developer for Firefox.
http://chrispederick.com/work/webdeveloper/
One of my favorite tools in this extension is the “Validate Local” option. It allows you to validate the HTML or CSS of a local file. This is particularly handy when you’re developing against “localhost” or a server that’s behind a firewall – which is hopefully most people, save the few brave cowboy coders who always work against production