The CSS pseudo-class :________ is particularly useful for improving accessibility for users who navigate primarily via keyboard.
- hover
- focus
- active
- target
The correct option is focus. The :focus pseudo-class is used to apply styles when an element is in focus, making it crucial for improving accessibility for keyboard navigation.
Loading...
Related Quiz
- What does the position: relative; CSS rule do to an element?
- In terms of specificity, which type of selector has the highest priority?
- When a new CSS property is in the experimental phase, it is often implemented with ________ to indicate that it is not yet standardized.
- How does the transform-origin property affect a transformed element in CSS?
- One of the benefits of CSS-in-JS solutions is that they can prevent unused styles, leading to ________.