css-pseudo-classes Flashcards

1
Q

What is a pseudo-class?

A

Used to define a special state for an element

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

To style an element when a user’s mouse hovers over it, to style visited and unvisited links differently, to style an element when it gets focus, etc.

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