CSS

CSS Intro

CSS Intro Quiz

CSS Intro Exercise

CSS Basic

CSS Basic Quiz

CSS Basic Exercise

CSS Advance

CSS Advance Quiz

CSS Advance Exercise

CSS3

CSS3 Quiz

CSS3 Exercise

CSS Properties

CSS Functions

CSS Selectors

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;
}

Code Explanation

All Tutorials related to CSS Selectors

All Sections related to CSS