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 Quiz

CSS3 Exercise

CSS Properties

CSS Functions

CSS Selectors

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.




Its syntax is:-
:invalid {
  css declarations;

Code Explanation

All Tutorials related to CSS Selectors

All Sections related to CSS