CSS-Pseudo-Classes Flashcards

1
Q

What is a pseudo-class?

A

pseudo-class is a keyword added to a selector that specifies a special state of the selected element(s)

i.e. :hover can change the state of an element when a user hovers their cursor on it.

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 are useful for when you want to change the style of a specific element when the web user interacts with it in some way. i.e hover, click

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