During a website redesign, a developer needs to update the form buttons to change color when they are interacted with by the user. Which pseudo-class is most appropriate for changing the button color when the button is clicked?

  • :active
  • :focus
  • :hover
  • :visited
The ':active' pseudo-class is used to select and style the active state of an element, making it suitable for changing the button color when clicked.
Add your answer
Loading...

Leave a comment

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