:invalid

The :invalid pseudo-class finds any input or form elements whose content does not pass validation, according to the type of the field. It allows you to easily change the appearance of fields, allowing the user to see and correct errors.

Syntax



element:blank {
  property: value;
}