Skip to main content
InterviewHubPRO
Section Overview
Q48

Question 48 of 50

Part 3: Advanced Internals, Scale & Production Architecture (Senior / Lead)

96%
Web Accessibility & WCAG (50 Qs)•Part 3: Advanced Internals, Scale & Production Architecture (Senior / Lead)

Accessible SVG Icons: Decorative vs Informative.

senior LevelFormsSystem Design

In Simple Words:

  • Decorative SVGs (Adjacent to text): Always add aria-hidden="true" and focusable="false" so screen readers ignore them and do not announce confusing raw code or file paths.
  • Informative / Standalone Button SVGs (Icon-only buttons): Provide an accessible name either using aria-label="Search" on the button, or embedding <title id="search-title">Search</title> inside the SVG and linking with aria-labelledby="search-title" role="img".