Glossary: JavaScript in the Browser
:user-invalid
Also written: :invalid
A CSS pseudo-class matching a control that is invalid and that the person has changed or tried to submit, so a fresh form isn't shown in red. :invalid matches any invalid control.