| Title | Alternative text for images: alt attribute contains URL |
|---|---|
| Description | A document with an img element that displays a cat. The img element has an alt attribute that duplicates the src attribute with the URI to the image instead of an appriopriate text alternative. |
| Creator | BenToWeb (Christophe.Strobbe@…) |
| Rights | Copyright BenToWeb 2004-2007 |
| Language | English |
| Date | 2005-05-10 |
| Status | accepted QA |
Technologies are markup languages or data formats. If the technology is a markup language, “features” refers to elements and attributes.
XHTML™ 1.0 The Extensible HyperText Markup Language (Second Edition)
Feature: img
(namespace: http://www.w3.org/1999/xhtml)
.
Technical specification: How to specify alternate text .
This test case is intended to fail because the alt attribute contains only a URL.
Accessibility expert.
“Rules” refer to success criteria in WCAG 2.0, checkpoints in WCAG 1.0 and similar requirements.
The test case fails the following success criterion at line 9, column 60: http://www.w3.org/TR/2007/WD-WCAG20-20070517/Overview.html#text-equiv-all.
The image does not have a text description that conveys the same information: it contains a URL instead of a text alternative.
The img element has an alt attribute that contains the URL to the image file instead of alternative text that conveys the same information.
This test case maps to failure F30: Failure of SC 1.1.1 due to using text alternatives that are not alternatives (e.g. filenames or placeholder text).
The test case fails the following success criterion at line 9, column 60: http://www.w3.org/TR/2006/WD-WCAG20-20060427/guidelines.html#text-equiv-all.
The image does not have a text description that conveys the same information: it contains a URL instead of a text alternative.
The img element has an alt attribute that contains the URL to the image file instead of alternative text that conveys the same information.
Online version: sc1.1.1_l1_003.
The test case fails the following success criterion at line 9, column 60: http://www.w3.org/TR/2006/WD-WCAG20-20050630/#text-equiv-informative.
The image does not have a text description that conveys the same information: it contains a URL instead of a text alternative.
The img element has an alt attribute that contains the URL to the image file instead of alternative text that conveys the same information.
The test case fails the following success criterion at line 9, column 60: http://www.w3.org/WAI/GL/WCAG20/WD-WCAG20-20050211/#4.1_use-spec-document-backward-compat-violations.
The image has a text description.
The img element has an alt attribute but the attribute's content is not according to specification.