When using the W3C CSS 3 Validator, I encountered this error:
The :required pseudo-element or pseudo-class is unknown
The required attribute is used in HTML5 for input elements. Despite working in IE10, Google Chrome, and Firefox, my CSS still triggers this issue.
Here's a snippet of my CSS code:
#reserved input:required {background:#eaeae6;}
#reserved select:required {background:#eaeae6;}
As for 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>
Why isn't W3C acknowledging the required attribute as a standard?