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”.
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.