When using SVGs in CSS, how can you change the color of the SVG on hover?
- Background color
- Fill color
- Outline color
- Stroke color
In CSS, when working with SVGs, the :hover pseudo-class can be used to change the fill color of the SVG on hover. This is achieved by targeting the fill property and specifying the desired color. It's a common technique for enhancing user interactivity with SVG elements.
Loading...
Related Quiz
- Applying __________ techniques to CSS can help in reducing render-blocking resources.
- In a grid layout, how would you make an element occupy the space of two columns starting from the second column?
- How can you make the text of an element bold using CSS?
- How does CSS minification typically reduce file size?
- Which property-value combination will make text both italicized and bold?