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.
Loading...
Related Quiz
- How can you specify a fallback font if the primary font fails to load?
- While building a flip card animation, you notice the back of the card is visible during the rotation. Which CSS property can help hide the back of the card until it's facing the viewer?
- A style rule with a complex selector is not being applied as expected on a website. What should a developer investigate about the selector to determine why it has lower specificity than anticipated?
- The CSS methodology ________ focuses on the modularity of CSS by breaking down styles into smaller, reusable parts.
- In responsive design, what does the term "mobile-first" approach mean?