Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is valid CSS “important”? (The jQuery UI CSS doesn’t validate.)

Observe that the jQuery UI CSS does not pass validation.

I try to adhere to standards wherever I can find them. I'm looking at jQuery UI and wondering why a group of developers that makes a solid product doesn't seem to even acknowledge the W3C-imposed standards.

Is the W3C CSS Validator just too picky? Or should I pay better attention to these errors/warnings?

Is valid CSS important to adhere to? Why do you feel it's important?

like image 324
Derek Adair Avatar asked Nov 25 '10 00:11

Derek Adair


People also ask

Can CSS be validated?

You can validate both HTML and CSS files. You can use any commercial software package or free online application, such as the following World Wide Web Consortium (W3C) validators: W3C CSS Validator at http://jigsaw.w3.org/css-validator/

What does CSS Validator do?

A CSS validator checks your Cascading Style Sheets to make sure that they comply with the CSS standards set by the W3 Consortium. There are a few validators which will also tell you which CSS features are supported by which browsers (since not all browsers are equal in their CSS implementation).


1 Answers

In perfect world, yes it would be important. In reality, to make CSS look aewsome in every single browser requires some... creativity. The result is that it may not be strictly valid, but works in (for example) IE and Safari both, even they can interpret the same rules very differently.

I think HTML validation is much more important, because its your content. Screen readers or other accessibility aids depend on standardized and well structured content. But CSS is just to make things look nice. And if it looks nice every you want it be, then I would call that perfectly "valid".

like image 162
Alex Wayne Avatar answered Sep 18 '22 16:09

Alex Wayne