CSS Form pseudo selectors
CSS pseudo selector forms exist in order to style differently form elements that are currently under a specific condition or they hold a specific attribute.
For example you can give more emphasis to the required fields or mark red the ones that are currently not valid. etc. The syntax is the same as with any CSS pseudo selector and the list can be found above.