The :invalid CSS pseudo-class

129

/* Selects any invalid <input> */
input:invalid {
  background-color: pink;
}

Comments

Submit
0 Comments