Lably
Skip to content

W3C Markup Validation Service

Validator service by the World Wide Web Consortium

  • 3 min read
  • 5 chapters

Related on Lably

Through Internet, HTML and CSS

As HTML5 has removed the use of DTD in favor of a "Living Standard", the traditional Markup Validation Service is not applicable to these formats. Validation is instead performed using an open-source "Nu Validator", an instance of which is provided by W3C.

Criticism

The W3C Markup Validation Service uses or used an SGML parser to parse HTML. This procedure is heavily criticized in the WHATWG HTML5 specification:

While the HTML syntax described in this specification bears a close resemblance to SGML and XML, it is a separate language with its own parsing rules. Some earlier versions of HTML (in particular from HTML2 to HTML4) were based on SGML and used SGML parsing rules. However, few (if any) web browsers ever implemented true SGML parsing for HTML documents; the only user agents to strictly handle HTML as an SGML application have historically been validators. The resulting confusion — with validators claiming documents to have one representation while widely deployed web browsers interoperably implemented a different representation — has wasted decades of productivity. This version of HTML thus returns to a non-SGML basis.

— https://html.spec.whatwg.org/multipage/parsing.html#parsing

Google.com did not validate in the W3C validator in 2009. Matt Cutts, who was head of Google’s webspam team, mocked the W3C validator saying, “And so we’re a little more worried about compatibility with all those different types of browsers than we necessarily are about whether we validate according to the W3C. ... But it’s important to realize that the vast majority of pages on the web don’t validate.”

Sign in to keep reading

4 more chapters are free with a Lably account.

More in Computing and communication