Redundant Title Attributes on Image Tags (Title Same as Alt Text)

Redundant Title Attributes on Image Tags (Title Same as Alt Text)

WCAG Focus: WCAG 1.1.1 (A) · Usability

Even when themes insert title attributes programmatically on featured thumbnails or gallery items, repeating the exact alt string in title creates unnecessary hover clutter and double speech output in screen readers.

Why This Pattern Violates WCAG

Accessible HTML keeps image descriptions concise inside alt (or <figcaption>) and avoids echoing the identical text in a title attribute.

Code Comparison

Redundant Title on Image Tag

<img src="campus.jpg" alt="North Campus Quad" title="North Campus Quad">

Clean Image Tag

<img src="campus.jpg" alt="North Campus Quad">

How to Fix It in WordPress

  • Strip title attributes from theme template image helpers when they copy alt text.
  • Keep captions visible inside <figcaption> when intended for all visitors.

Finding This Issue Automatically

Theme templates frequently echo post titles into both alt and title on featured images. The WP ADA Compliance Check plugin automatically fixes this issue by removing redundant title attributes from images on-the-fly.

WCAG References & Supporting Materials

WCAG Success Criteria

Supporting Documentation & Guides

Subscribe

Subscribe to receive daily Web Accessibility - Did you know? articles in your inbox.

Cart Accessibility Tools
hide