How does the proper use of the 'alt' attribute in HTML improve accessibility in web design?
- alt="Description of the image"
- aria-label="Image description"
- data-alt="Image"
- title="Image"
The 'alt' attribute in HTML is vital for accessibility as it provides alternative text for images. Screen readers use this text to describe images to users with visual impairments. Using descriptive and accurate 'alt' text ensures that all users, including those using assistive technologies, can understand the content.
Loading...
Related Quiz
- In terms of performance, why might you opt for the "woff2" font format over others?
- To increase the specificity of a class selector without adding more elements or IDs, you can __________ the class name in the selector.
- How can you pause an animation before it begins or between iterations?
- When is it most beneficial to inline critical CSS?
- For multilingual websites, the HTML attribute ________ should be accurately set to match the language of the page or section.