I just a have simple question. I coded my HTML5 website and used some CSS3.
Is there a different markup for CSS2 and CSS3?
When I checked my HTML at the W3C, it validates 100%. But not my CSS, because it says that
some elements can’t be used in CSS2 but can be used in CSS3.
The markup I use is @charset “utf-8”
No, there is no special markup. Use normal CSS and a browser will parse this with the newest CSS3 parser.
CSS3 is in beta mode. The most browsers doesn’t actually support the CSS3 functions, they are testing with it (so we need to use prefixes like -webkit-; -moz-; -o-; -ms-; -khtml-).
And W3C doesn’t support these prefixes. You can set the W3C validator to CSS3 under more options, but you will also get errors because of the prefixes.