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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What does a CSS pseudo-class consist of

A

A selector followed by colon and a keyword

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

CSS Pseudo-Class: hover

A

The hover pseudo-class targets elements that have a mouser pointer hover over them

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

CSS Pseudo-Class: valid

A

The valid pseudo-class targets input controls that have valid input

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

CSS Pseudo-Class: invalid

A

The invalid pseudo-class targets input controls that invalid input

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

CSS Pseudo-class: required

A

The required pseudo-class targets input controls that require user input

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

CSS Pseudo-class: optional

A

The optional pseudo-class targets input controls that are optional

How well did you know this?
1
Not at all
2
3
4
5
Perfectly