W3C Markup Validation Service

From Wikipedia, the free encyclopedia
Jump to: navigation, search
Valid-xhtml10-v (W3C Markup Validation Service).svg
Valid-css-v (W3C Markup Validation Service).svg

The Markup Validation Service is a validator by the World Wide Web Consortium (W3C) that allows Internet users to check HTML and XHTML documents for well-formed markup. Markup validation is an important step towards ensuring the technical quality of web pages; however, is not a complete measure of Web standards conformance.[1]

Contents

[edit] History

The Markup Validation Service began as The Kinder, Gentler HTML Validator, a project by Gerald Oskoboiny.[1] It was developed to be a more intuitive version of the first online HTML validator written by Dan Connolly and Mark Gaither, which was announced on July 13, 1994.[2]

In September 1997, Oskoboiny began working for the W3C, and on December 18, 1997, the W3C announced its W3C HTML Validator based upon his works.[3]

[edit] Browser accommodation

Many major browsers are often tolerant of certain types of error, and may display a document successfully even if it is not syntactically correct. Certain other XML documents can also be validated if they refer to an internal or external DTD.

W3C also offers validation tools for web technologies other than HTML/XHTML, such as MathML or CSS.

[edit] Validator criticism

All mark-up validators suffer from an inability to see the "big picture" on a web page.[4] However they excel at picking up missed closing tags and other technicalities. This does not mean that the page will display as the author intended in all browsers.

DTD based validators are also limited in their ability to check attribute values according to many specification documents. For example, using an HTML 4.01 DOCTYPE, bgcolor="fffff" is accepted as valid for the "body" element even though the value "fffff" is missing a preceding '#' character and contains only 5 (instead of 6) hexadecimal digits. Also, for the "img" element, width="really wide" is also accepted as valid. DTD based validators are technically not able to test for these types of attribute value problems.

Furthermore, even if validated, all web pages should be tested in as many different browsers as possible to ensure that the limitations of the validator are compensated for and that the page works correctly.[4]

[edit] CSS validation

While the W3C and other HTML and XHTML validators will assess pages coded in those formats, a separate validator is needed to confirm that there are no errors in the associated Cascading Style Sheet. CSS validators work in a similar manner to HTML and XHTML validators in that they apply current CSS standards to referenced CSS documents.[4]

[edit] See also

[edit] References

  1. ^ a b "About the W3C Markup Validation Service". W3C Markup Validation Service. World Wide Web Consortium. http://validator.w3.org/about.html. Retrieved 2011-05-20. 
  2. ^ Connolly, Dan (1994-07-13). "ANNOUNCE: HaL Interactive HTML Validation Service". www-html mailing list. http://lists.w3.org/Archives/Public/www-html/1994Jul/0015. Retrieved 2008-06-28. 
  3. ^ Oskoboiny, Gerald (2003-03-22). "History of the Kinder, Gentler HTML Validator". http://impressive.net/people/gerald/1996/ugweb/validate/changes.html. Retrieved 2008-06-28. 
  4. ^ a b c Castro, Elisabeth: HTML, XHTML & CSS, Sixth Edition, page 345-346. Visual Quickstart Guides, Peachpit Press, 2007. ISBN 0-321-43084-0

[edit] External links

Personal tools
Namespaces
Variants
Actions
Navigation
Interaction
Toolbox
Print/export
Languages