Which pseudo-class would you use to style an element that is being hovered over by a mouse pointer?

  • :active
  • :focus
  • :hover
  • :visited
The :hover pseudo-class is used to select and style an element when it is being hovered over by a mouse pointer. This is commonly used for creating interactive and dynamic user interfaces in web development.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *