For accessibility, using ________ in CSS can provide better control over how elements are read by screen readers.
- accessibility-control:
- aria-label:
- role:
- sr-only:
To enhance accessibility, using sr-only in CSS is beneficial. It helps provide better control over how elements are read by screen readers by visually hiding elements while keeping them accessible. aria-label and role are attributes used in HTML for accessibility, not CSS properties. accessibility-control is not a valid CSS property.
Loading...
Related Quiz
- What is the difference between using em and rem units for font-sizing in CSS?
- In the context of JavaScript frameworks, what is the main purpose of using CSS-in-JS libraries?
- If a designer wants a background with a gradient that subtly changes colors as the user scrolls, which CSS property should be animated for this effect?
- The ________ property can be used to specify an image as the list item marker in an unordered list.
- CSS Houdini's ________ API is instrumental in creating complex animations that react to user input.