To select an input element of type text that is currently in focus, you would use the :______ pseudo-class.

  • focus
  • active
  • target
  • input
The correct option is a) focus. The :focus pseudo-class in CSS is used to select an element that is currently in focus, such as an input field that the user is interacting with.
Add your answer
Loading...

Leave a comment

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