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"andfocusable="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 witharia-labelledby="search-title" role="img".