I'm getting the following error in the W3C CSS 3 Validator:
Unknown pseudo-element or pseudo-class :required
Required is a HTML5 input attribute. My CSS works in IE10, Google Chrome and Firefox.
This is my CSS:
#reserved input:required {background:#eaeae6;}
#reserved select:required {background:#eaeae6;}
This is my HTML code:
<section id="reserved">
<select id="hab" name="hab" title="Study or Apartment" required>
<input type="text" id="name" name="name" maxlength="50" style="width: 200px;" title="Name and Surname" required/>
</section>
Doesn't W3C recognize the required attribute like a standard?