CSS :invalid Selector
CSS :invalid Selector
The :invalid selector is used to selecting form elements with a value that does not validate according to the element's default settings. It is only used for form elements with limitations like input elements with email fields but not legal email, number fields but without numeric value, and min and max attributes.
Syntax:-
Its syntax is:-
:invalid {
css declarations;
}