A short CSS tutorial showing how to use the :user-valid and :user-invalid pseudo-classes to style form fields only after a user has interacted with them, with a fallback selector for browsers without support.
What you’ll learn
✓Style form fields with :user-valid and :user-invalid