Accessibility · Middle · Question 51 of 75

How do you expose a meaningful inline SVG to assistive tech?

Show the answer

Correct answer: role="img" with a <title> or aria-label

Explanation

Inline SVGs have no alt. Decorative ones should get aria-hidden="true" so they're skipped.

Further reading

Problem with a question

Accessibility · Middle · question 51

Test yourself

Take the Accessibility · Middle quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz