Image Tags With Invalid Alt Text
WCAG Focus: WCAG 1.1.1 (A) · Failure F30
Automated SEO plugins sometimes fill missing WordPress alt fields using the uploaded filename—producing alt="hero-banner-v3-scaled.jpg", alt="image1", or alt="photo of team". Technically an alt attribute exists, yet filenames provide zero useful information and phrases like "image of" add redundant noise.
Why This Pattern Violates WCAG
WCAG Failure F30 explicitly designates non-descriptive placeholders and filenames (such as "spacer", "picture", "DSC0045.jpg") as failures of Success Criterion 1.1.1 Non-text Content (Level A).
Saying "image of" or "photo of" is also redundant because screen readers already announce the graphic role.
Code Comparison
Fails WCAG F30 (Filename / Redundant Prefix)
<img src="DSC_0942.jpg" alt="DSC_0942.jpg">
<img src="team.jpg" alt="Photo of our engineering team">
Compliant Descriptive Alt Text
<img src="DSC_0942.jpg" alt="Developer testing a WordPress site with a keyboard">
<img src="team.jpg" alt="Our engineering team collaborating around a desk">
How to Fix It in WordPress
- Replace filenames, extensions (.jpg, .png), and generic placeholders with genuine descriptions.
- Avoid starting alt text with "image of" or "photo of".
Finding This Issue Automatically
A basic checker that only verifies alt exists will miss alt="IMG_1234.png" or alt="photo of…". The WP ADA Compliance Check plugin flags invalid alt text patterns—and will even automatically fix redundant phrasing by removing phrases such as "image of" or "photo of" from image alt text.
WCAG References & Supporting Materials
WCAG Success Criteria
Supporting Documentation & Guides
- W3C Failure F30: Using text alternatives that are not alternatives — Documents invalid alt text such as filenames, "image", or placeholder strings.
- W3C Technique H37: Using alt attributes on img elements — Properly conveying text alternatives for informative <img> elements.
- W3C WAI Tutorial: Images — Alt text rules for informative, decorative, functional, and image-map images.
Subscribe
Subscribe to receive daily Web Accessibility - Did you know? articles in your inbox.

