Google fonts URL break HTML5 Validation on w3.org

I load 3 fonts in different sizes using this HTML tag: <link rel=”stylesheet” type=”text/css” href=”http://fonts.googleapis.com/css?family=Open+Sans:400,600,300,800,700,400italic|PT+Serif:400,400italic|Bree+Serif”> Till ~1/2 weeks ago this was supported by w3.org validator for HTML5; now it gives this error: Line 14, Column 163: Bad value http://fonts.googleapis.com/css?family=Open+Sans:400,600,300,800,700,400italic|PT+Serif:400,400italic|Bree+Serif for attribute href on element link: Illegal character in query: not a URL code point. What’s … Read more

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: <table> <thead> <tr> <th></th> <th class=”target”></th> <th></th> </tr> </thead> <tbody> <tr> <td></td> <td class=”target”></td> <td></td> </tr> <tr> <td></td> <td class=”target”></td> <td></td> </tr> </tbody> </table> With this DOM I can do this in one line via jQuery: … Read more

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

The W3C validator (Wikipedia) 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: <br /> <img src=”” /> <input type=”text” name=”username” /> Some examples of rejected non-void elements: <div … Read more