On the other side, if web page does not validate against the declared doctype, the way it will be displayed in any browser can be unpredictable as it will then depend on error-handling mechanisms which vary a lot from browser to browser.
It is like having an ID card, but being someone else. Yes, it is that bad.
There are a number of online services and extensions for different web browser that perform validation. Once your web page is ready, before putting it online, it should be validated. Some of the most popular ones are:
- W3C Markup Validation Service
- W3C CSS Validation Service
- Firefox Total Validator add-on
- Internet Explorer Developer Toolbar
It is very probable that validation will reveal errors and highlight potential layout problems the developer did not expect to find. Once it becomes a habit, producing valid code leads to a faster development and is a foundation for easy management and maintenance.
What’s in it for me?
If you are just surfing the internet, go ahead and use these tools. It is good to know where you are.
If you are a web developer and you want to know more about doctypes, you might get more details by following :
- Fix Your Site With the Right DOCTYPE!
- Activating the Right Layout Mode Using the Doctype Declaration
- W3C Recommended list of DTDs
If you are a business owner thinking about hiring a web development company to make or redesign your website, do a research before you make an agreement. Visit the websites of your potential service providers. Normally you will find web design portfolios. Do your homework. Visit the websites they have created and make sure they are HTML/XHTML and CSS valid. Consider hiring only those that are compliant. Believe me, it will save you a lot of trouble (time + money) in future.






