The :valid and :invalid pseudo-classes target form elements whose formatting is correct/incorrect according to that element’s required format.