css-pseudo-classes Flashcards

1
Q

What is a pseudo-class?

A

A pseudo-class is a state an element can be in when interacted with by the user in some way. This is typically states such as: “:active, :hover, :focus”.

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

CSS pseudo-classes are useful for changing the look or position of an element when it is interacted with by a user.

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