css-pseudo-classes Flashcards

1
Q

What is a pseudo-class?

A

A pseudo-class is a selector that selects elements that are in a specific state, e.g. they are the first element of their type, or they are being hovered over by the mouse pointer.

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

What are CSS pseudo-classes useful for?

A

Pseudo-classes can be used to style an element based on its state.

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