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