Skip to content

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.

Where the book teaches it

Related terms

validity