HTML is based upon rules to create it and browsers use those rules to display the Web pages consistently. However, because HTML is written by people, there is a lot of possibility for error.
Programmers know that when they write C code they have programs like debuggers to find problems, and they also have a program called "lint" to check for errors in the code. The same is true for HTML writers.
Once you have written a Web page, you may notice that things you don't expect are happening. Unless you've written the page in a WYSIWYG editor, invalid
Validation is a process of checking your documents against a formal Standard, such as those published by the Worldwide Web Consortium (W3C) for HTML and XML-derived Web document types, or by the WapForum for WML, etc. It serves a similar purpose to spellchecking and proofreading for grammar and syntax, but is much more precise and reliable than any of those processes because it is dealing with precisely-specified machine languages, not with nebulously-defined human natural language.
It is important to note that validation has a very precise meaning.
This is a well-discussed and very important topic. Personally, presently I write XHTML for my web interface code, but lately I’ve started to stagger in my standpoint. For normal general web page design, what’s the gain? If you don’t extend the code with namespaces, use MathML, have your own DTDs and so on, why would you want to use XHTML?
Many people answer that question with: “It makes me write leaner code, code that has to validate and be more semantic correct”. Martin 0 wrote a post 0 recently why he uses XHTML (unfortunately, it’s in
This is a well-discussed and very important topic. Personally, presently I write XHTML for my web interface code, but lately I’ve started to stagger in my standpoint. For normal general web page design, what’s the gain? If you don’t extend the code with namespaces, use MathML, have your own DTDs and so on, why would you want to use XHTML?
Many people answer that question with: “It makes me write leaner code, code that has to validate and be more semantic correct”. Martin 0 wrote a post 0 recently why he uses XHTML (unfortunately, it’s in