Demo: :valid, :invalid, and :required CSS Pseudo Selectors

The inputs below are styled based on their validation state.

:required

Name:

:valid

Email:

:invalid

Email:

Back to: :valid, :invalid, and :required CSS Pseudo Selectors