CSS UI pseudoclasses - Part 4
Notes:
CSS Pseudo Class Selectors (UI) - Part 4:
7.
selector : invalid
{
declaration list;
}
It selects any html element targeted by the selector, if its status is invalid
Ex:
input : invalid
{
color : white;
background-color : red;
}
It selects any input element, if its status is invalid
8.
selector : valid
{
declaration list;
}
It selects any html element targeted by the selector, if its status is valid
Ex:
input : valid
{
color : white;
background-color : green;
}
It selects any input element, if its status is valid
Interview Questions: