Fill in the blank:Usea_________class to hide elements visually while keeping them accessible to screen readers.
Choose an answer
Tap an option to check your answer.
Correct answer: sr-only.
Why this is the answer
The correct answer is sr-only.This class is commonly used to hide elements visually on a webpage while ensuring they remain accessible to screen readers.It is a technique often employed for elements like skip navigation links,auxiliary content, or descriptive text that may not need to be visible but are essential for screen reader users to understand and navigate the content effectively.By applying the"sr-only"class,developers can remove elements from the visual display while still allowing screen readers to access and readout their content to users who rely on auditory cues.This approach helps maintain accessibility by ensuring that important information is available to all users,regardless of their browsing capabilities or assist ive technology usage. Therefore,usingthe"sr-only"class is an effective method for improving accessibility and ensuring in clu siv it yin web design practices.
Pass your exam — without the endless answer hunt
Get every verified question and explanation for this exam in one place, and save hours of prep. 1,000+ certifications · 20+ languages · free to start.
Pass your exam faster → No card needed