W3C validator, CSS3 and Bootstrap

bersude2 picture bersude2 · Jan 16, 2014 · Viewed 18k times · Source

I have a site that uses the Twitter Bootstrap framework which renders without errors in all browsers. However, when I plug the main URL of our site into the W3C validator it spits out 1,465 errors, most of which are parsing errors.

A few examples:

Parse Error {*zoom:1; Value Error : background-color Too many values or values are not recognized : #3f6998 \000009

I understand the * and \000009 are IE specific, so it is important that these are failing validation?

Is there a validator that takes these into consideration?

Answer

Roy M J picture Roy M J · Jan 16, 2014

You will always get css validation error while using CSS3. Most of the styles(css3) are not valid under w3 rules as of now.. You can simply ignore these errors and move ahead.. Just make sure you do not have any other validation issues other than those with css3 styles. If so you are perfectly fine..

Update :

You can try something like this :

http://jigsaw.w3.org/css-validator/validator?profile=css3&uri=PATH_TO_YOUR_WEBSITE

For eg :

http://jigsaw.w3.org/css-validator/validator?profile=css3&uri=http://stackoverflow.com

Still it will show lot of errors. There are no CSS3 validators yet implemented which is accepted.

[Updated]

URL : https://validator.w3.org/

Please use the official validator.