Redundant Title Attributes on Links Around Images

Redundant Title Attributes on Links Around Images

WCAG Focus: WCAG 2.4.4 (A), 1.1.1 (A)

When an anchor tag wraps an image (<a href="/about/" title="Company Logo"><img src="logo.png" alt="Company Logo"></a>), duplicating the image’s alt text inside the link’s title attribute causes assistive technologies to speak the exact same phrase twice.

Why This Pattern Violates WCAG

WCAG 2.4.4 (Level A) and 1.1.1 (Level A) rely on a single clear accessible name for a linked graphic.

Duplicating alt text inside the wrapper link’s title adds pure verbosity without adding any extra context.

Code Comparison

Redundant Link Title Matching Image Alt

<a href="/about/" title="About Our Team">
  <img src="team.jpg" alt="About Our Team">
</a>

Clean Linked Image Without Duplicate Title

<a href="/about/">
  <img src="team.jpg" alt="About Our Team">
</a>

How to Fix It in WordPress

  • Remove the title attribute from <a> tags wrapping images when it duplicates the enclosed image alt text.
  • Ensure the image alt text describes the link destination clearly.

Finding This Issue Automatically

Classic editor galleries and theme image links often mirror alt text into the surrounding link title automatically. The WP ADA Compliance Check plugin flags matching link title and image alt pairs and automatically fixes the issue by stripping redundant title attributes from links.

Subscribe

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

Cart Accessibility Tools
hide