CSS3
Exercise 2 / 15
Pseudo-classes and Pseudo-elements
Medium
18 points
Change the link color to red on hover and add an underline to the first line of the paragraph with ::first-line.
Pseudo-classes (:hover, :active, :focus) target element states. Pseudo-elements (::before, ::after, ::first-line, ::first-letter) target parts of elements. :hover activates on hover, ::first-line targets the first line. This is powerful for interactions.
Well done! 🎉
Your answer is correct! You earned 18 points.
Not quite...
Try again! You can do it.
Your code
CSS3
Result