The reason behind validation
BY THE WAY, here is the reason advanced by the W3 Consortium on why validation is necessary:
One of the important maxims of computer programming is: Be conservative in what you produce; be liberal in what you accept.A lengthier explanation is available here.
Browsers follow the second half of this maxim by accepting Web pages and trying to display them even if they're not legal HTML. Usually this means that the browser will try to make educated guesses about what you probably meant. The problem is that different browsers (or even different versions of the same browser) will make different guesses about the same illegal construct; worse, if your HTML is really pathological, the browser could get hopelessly confused and produce a mangled mess, or even crash.
That's why you want to follow the first half of the maxim by making sure your pages are legal HTML. The best way to do that is by running your documents through one or more HTML validators.
Now, is it worth all the pain and the effort? You tell me.
No comments:
Post a Comment