Hidden Images That Include Alternate Text
WCAG Focus: WCAG 1.1.1 (A), 4.1.2 (A)
Adding role="presentation" (or role="none") to an <img> tells assistive technology the graphic is purely decorative and should be omitted from the accessibility tree—yet WordPress plugins sometimes combine role="presentation" with a populated alt="Sales Chart" attribute, hiding meaningful descriptions from screen readers.
Why This Pattern Violates WCAG
WCAG 1.1.1 Non-text Content (Level A) requires informative images to be exposed to assistive technology, not silenced with presentation roles.
If an image is genuinely decorative, use alt="" without needing role="presentation"; if it is informative, never hide it with role="presentation".
Code Comparison
Contradictory Presentation Role With Alt Text
<img src="pricing-matrix.png" role="presentation" alt="2026 Pricing Matrix">
Consistent Informative or Decorative Markup
<img src="pricing-matrix.png" alt="2026 Pricing Matrix">
How to Fix It in WordPress
- Remove role="presentation" or role="none" from any image carrying meaningful alt text.
- For truly decorative images, use alt="" cleanly.
Finding This Issue Automatically
Page builders and theme frameworks occasionally inject role="presentation" alongside populated alt fields. The WP ADA Compliance Check plugin detects images hidden via role="presentation" that still contain alt text so important graphics are never accidentally silenced.
Subscribe
Subscribe to receive daily Web Accessibility - Did you know? articles in your inbox.

