Questions tagged [w3c-validation]

You can use W3C validation services to check HTML documents, CSS stylesheets, Atom/RSS feeds, and more.

See also the W3C Developer Tools page.

For evaluating conformance with various W3C specs, the W3C provides a number of checkers:

Note: The Markup Validator is an older Perl/CGI/SGML/DTD-based tool that has now effectively been deprecated; use the HTML Checker instead. And the mobileOK Checker is an older tool that is has now been deprecated also; use the Mobile Checker instead.

857 questions
705
votes
7 answers

Are (non-void) self-closing tags valid in HTML5?

The W3C validator doesn't like self-closing tags (those that end with "/>") on non-void elements. (Void elements are those that may not ever contain any content.) Are they still valid in HTML5? Some examples of accepted void elements:
cdeszaq
  • 29,170
  • 25
  • 111
  • 169
265
votes
13 answers

Can I use non existing CSS classes?

I have a table where I show/hide a full column by jQuery via a CSS class that doesn't exist: …
totymedli
  • 23,114
  • 18
  • 109
  • 143
194
votes
5 answers

Google fonts URL break HTML5 Validation on w3.org

I load 3 fonts in different sizes using this HTML tag: Till ~1/2 weeks ago this was…
Octavian
  • 4,219
  • 6
  • 25
  • 38
76
votes
4 answers

Best practice for meta data in a html document?

I work on a large scale, high volume, public facing web application. The successful operation of the application is very important to the business, and so there are a number of MI tools that run against it. One of these MI tools essentially looks at…
Nathan Russell
  • 2,938
  • 4
  • 28
  • 47
51
votes
3 answers

No p element in scope but a p end tag seen.w3c validation

My HTML is as as below. I have opened all elements and closed them. Still when I check it on w3c it shows error. I cant figure it out. Untitled Document
Sam IR
  • 810
  • 1
  • 6
  • 15
45
votes
2 answers

How to write W3C compliant multi-level bullet points in HTML?

Is it possible to write W3C compliant multi-level bullet points (unordered list) in HTML? Nested ul can be used, but is not W3C compliant.
  • myItem 1
  • myItem 2
    • myItem 2a
Techboy
  • 3,720
  • 5
  • 33
  • 44
42
votes
5 answers
in every table?
Is it necessary to have
in every table? According to Standards.
Jitendra Vyas
  • 134,556
  • 218
  • 544
  • 822
41
votes
7 answers

Is (not rel="stylesheet") allowed to be used in ?

The new schema.org by Google, Yahoo and MS recommends usage of the attribute to display the status of products in an online shop:
Blend-O-Matic
aufziehvogel
  • 6,827
  • 4
  • 32
  • 51
41
votes
12 answers

Google +1 Button not W3C compliant

So I've been playing with Google's +1 button trying to get it on my website, but it's not W3C compliant. Here's the code: