Validation

Validation is the process of comparing your HTML or CSS to W3C 'Recommendations'.  They are called Recommendations rather than Standards because the W3C is not an official standards-making body and members are encouraged, but not obligated, to comply.  Most members perceive that it is in their interest to do so, however.

Truth

The W3C Recommendations are the primary means by which site developers and browser developers communicate.  If both parties agree on what the Recommendations mean and then implement in accordance with them, all web browsers will display all web pages in a consistent manner.

Validation ensures that a web page or style sheet follows the Recommendations.  A valid page is more likely to be displayed in multiple browsers as the author intended than is an invalid one. 

Consequences

If you do not validate your pages and correct the errors that the validator reports, you increase the probability that the pages will not be rendered as you intended in various browsers. NOTE: Validation does not ensure that your page is free of defects, only that it conforms to the Recommendations, just as a spell-checker cannot force you to create great literature.

Recommendations

Validate your HTML and CSS.  Fix any errors that are reported.  Fix, or have a good reason for not doing so, any warnings that are reported.

Tips

  1. Use the HTML validator at http://validator.w3.org/.  Make sure you have specified the correct DOCTYPE on your pages.
  2. Use the CSS validator at http://jigsaw.w3.org/css-validator/.

Last revised 30 Jan 2006