Alert - A nearby image has the same alternative text
- WAVE Category: Alert
- WAVE Alert: A nearby image has the same alternative text
Page Content Status
- WAVE Error guidance text
- Example of a DOM Snippet Generated From WAVE Tool
- Project Team Error guidance
- Project Team Page Details
- Project Team Issue and PR details
- Project Team Solution
- Credits/Authors
WAVE Guidance
WAVE Tool's Reference material on A nearby image has the same alternative text may not specifically address your problem. We provide it here for optional reading.
Click to see WAVE Tool Reference
This content added 2026-03-10. Check for updated guidance at: https://wave.webaim.org/api/docs?format=html#alt_duplicate
WAVE Category
Alerts
WAVE Error
A nearby image has the same alternative text
What It Means
Two images near each other have the same alternative text.
Why It Matters
When two images have the same alternative text, this often causes redundancy or indicates incorrect alternative text.
What To Do
Ensure that the alternative text for each image or image button is appropriate while removing unnecessary redundancy. If the content of the image is already conveyed elsewhere (through text or the alternative text of a nearby image) or if the image does not convey content, the image may generally be given empty/null alternative text (alt=""). Image buttons always convey a specific function, and thus cannot be given null alternative text.
The Algorithm... in English
The same alternative text (case insensitive, but not null/empty) is present for two images or image buttons (
<input type='image'>) near each other (no more than 2 other images separate them).Standards and Guidelines
Example of a DOM Snippet Generated From WAVE Tool
Project Team Error guidance
The following material covers how the Project Team has provided a solution to the [Alert/ARIA/Contrast Error/Error Name] WAVE [Alert/ARIA/Contrast Error/Error].
Project Page Details
- Project Page name: [INSERT PAGE NAME or "ALL"]
- Project Dev URL: [INSERT URL or "N/A"]
- Requires sign in: [TRUE OR FALSE]
- Required User Role: [INSERT ONE OF: Visitor, Logged in user, Admin, Security Admin]
- Can access page directly from URL: [TRUE OR FALSE]
- Accepts URL parameters: [TRUE OR FALSE]
Project Team Issue and PR details
- Related GitHub Issue(s):
- [INSERT ISSUE URL]
- Related Pull Request(s):
- [INSERT PR URL]
- React Component(s)
- [INSERT PATH: e.g. path/to/Component.jsx]
Project Team Solution
What is the specific problem that was occurring?
[INSERT CONTENT]
What is the proposed solution to this problem?
[INSERT CONTENT]
Step-By-Step Guide
Click to see step-by-step guide
[ADD DETAILED INSTRUCTIONS HERE]
Other Technical Details
Click to see other technical details
[INSERT OTHER DETAILS e.g. Prop References, Return Value ]
Code Snippet With Solution
Click to see code snippets
[INSERT PATH file/path/to/Snippet.jsx]
Why the Fix Works
[INSERT CONTENT]
Where this solution is applicable
- [INSERT SCENARIO 1]
- [INSERT SCENARIO 2]
- [INSERT SCENARIO N]
Screenshots of WAVE Error
1. Descriptive Title for Screenshot Set 1
Description/text for image
[INSERT IMAGE HERE]
Credits/Authors
- @Rabia2219
- [INCLUDE Contributor 2]
- [INCLUDE Contributor N]