“the :valid and :invalid pseudo-classes [apply] to the form element. This way you can determine whether all controls in a given form are correctly filled in.”
So imagine your CSS looks like this: `input:invalid { color: red; font-weight: bold }`
This is particularly useful in the context of the newer HTML5 form types, like ``
Let’s hope this doesn’t breed a generation of web forms with no server-side validation. 😉
Ben Timms we’ve already had that problem since JavaScript and Netscape 2.0’s release in 1995. 🙂
OK – perhaps that comment was missing the word, “new”. 😉