CSS Pseudo-Classes Flashcards
1
Q
What are CSS pseudo-classes
A
A keyword added to selectors that specifies a special state of the element to be selected
2
Q
What does a CSS pseudo-class consist of
A
A selector followed by colon and a keyword
3
Q
CSS Pseudo-Class: hover
A
The hover pseudo-class targets elements that have a mouser pointer hover over them
4
Q
CSS Pseudo-Class: valid
A
The valid pseudo-class targets input controls that have valid input
5
Q
CSS Pseudo-Class: invalid
A
The invalid pseudo-class targets input controls that invalid input
6
Q
CSS Pseudo-class: required
A
The required pseudo-class targets input controls that require user input
7
Q
CSS Pseudo-class: optional
A
The optional pseudo-class targets input controls that are optional