Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSS

The :invalid CSS pseudo-class

/* Selects any invalid <input> */
input:invalid {
  background-color: pink;
}
Source by developer.mozilla.org #
 
PREVIOUS NEXT
Tagged: #The #CSS
ADD COMMENT
Topic
Name
6+3 =