Q
What is the role of the role='img' attribute in SVG accessibility?

Answer & Solution

Answer: Option A
Solution:
The role='img' attribute in SVG accessibility indicates that the SVG is an image and should be treated as such by screen readers and assistive technologies. It ensures that screen readers announce the SVG correctly and convey its purpose or content to users with visual impairments.
Related Questions on Average

What is the recommended approach for adding descriptions to an SVG graphic for accessibility purposes?

A). Use the <desc> element to provide detailed descriptions

B). Use complex animations and effects within the SVG

C). Use inline comments within the SVG code

D). Use raster images with accompanying text descriptions

Which attribute is commonly used to reference an element providing a label or description for an SVG graphic?

A). aria-labelledby

B). role='label'

C). title

D). alt

How can you ensure that an SVG graphic is accessible to screen readers?

A). By providing alternative text (alt text) and using semantic markup

B). By using complex animations and effects

C). By embedding JavaScript code within the SVG

D). By increasing the file size of the SVG graphic

Which HTML element is used to provide a concise title for an SVG graphic?

A). <title>

B). <alt>

C). <description>

D). <caption>

Which element in SVG is used to describe the content and function of the graphic?

A). <desc>

B). <alt>

C). <title>

D). <label>

What is the recommended approach for adding interactive elements to an SVG graphic while maintaining accessibility?

A). Use ARIA roles and attributes along with semantic markup

B). Use JavaScript event listeners directly within the SVG

C). Use inline styles for interactivity

D). Use raster images instead of SVG for interactivity

How can you indicate that an SVG graphic is decorative and should be ignored by screen readers?

A). By adding role='presentation' or aria-hidden='true'

B). By using complex animations within the SVG

C). By embedding multimedia content within the SVG

D). By increasing the font size of the SVG graphic

How can you provide descriptive alternative text (alt text) for an SVG graphic?

A). By describing the content and function of the graphic in the alt attribute

B). By using the title element within the SVG

C). By embedding JavaScript code within the SVG

D). By increasing the font size of the SVG graphic

What is the purpose of providing alternative text (alt text) for SVG content?

A). To provide a text alternative for users who cannot see the graphic

B). To add decorative elements to SVG graphics

C). To specify the exact dimensions of the SVG graphic

D). To control the color scheme of SVG graphics

How can you specify a text alternative for an SVG graphic that enhances accessibility?

A). By using descriptive <title> and <desc> elements

B). By using complex animations within the SVG

C). By embedding JavaScript code within the SVG

D). By increasing the font size of the SVG graphic