
ALT, TITLE, and LONGDESC attributes for IMG element
On this page:
Test
1 |
Test
2 |
Test
3 |
References
|
About these tests
Nearby:
More HTML 4.01 Tests
|
UAAG 1.0 Test Suite
UAAG 1.0 Requirement
-
Checkpoint
2.3
Render conditional content
(Priority
1
)
-
Provision
1
:
Allow configuration to provide access to each piece of unrendered conditional content "C".
-
Provision
2
:
When a specification does not explain how to provide access to this content, do so as follows: If C is a summary, title, alternative, description, or expansion of another piece of content D, provide access through at least one of the following mechanisms: (1a) render C in place of D; (2a) render C in addition to D; (3a) provide access to C by allowing the user to query D. In this case, the user agent must also alert the user, on a per-element basis, to the existence of C (so that the user knows to query D); and (4a) allow the user to follow a link to C from the context of D. Otherwise, provide access to C through at least one of the following mechanisms: (1b) render a placeholder for C, and allow the user to view the original author-supplied content associated with each placeholder; (2b) provide access to C by query (e.g., allow the user to query an element for its attributes). In this case, the user agent must also alert the user, on a per-element basis, to the existence of C; and (3b) allow the user to follow a link in context to C.
Procedure
- The user agent should display the conditional content of the image elements. If the conditional content is rendered automatically through configuration it should appear in place of or next to the image content. If the conditional content is rendered through a query, you will need to query the element properties to render the conditional content (i.e. a context sensitive menu).
Run test
Expected results
- The alt text--"Three fish swimming"--is accessible to the user.
Source code
<img src="../images/threeFish.jpg" alt="Three fish swimming" width="148" height="118" border="0" id="fish3"></img>
Procedure
- The user agent should display the conditional content of the image elements. If the conditional content is rendered automatically through configuration it should appear in place of or next to the image content. If the conditional content is rendered through a query, you will need to query the element properties to render the conditional content (i.e. a context sensitive menu).
Run test
Expected results
- The content of the title attribute--"Leaping dolphin"--is accessible to the user.
Source code
<img src="../images/dolphin.jpg" alt="dolphin" title="Leaping dolphin" width="200" height="250" border="0"></img>
Procedure
- The user agent should display the conditional content of the image elements. If the conditional content is rendered automatically through configuration it should appear in place of or next to the image content. If the conditional content is rendered through a query, you will need to query the element properties to render the conditional content (i.e. a context sensitive menu).
Run test
Expected results
- The file whose URI is contained by the longdesc attribute is available to the user.
Source code
<img src="../images/SeaShells.jpg" alt="Sea shells" width="225" height="116" border="0" longdesc="../action/shellDesc.html"></img>
-
HTML 4.01 specification for IMG
-
HTML 4.01 specification for ALT
-
HTML 4.01 specification for TITLE
-
HTML 4.01 specification for LONGDESC
This test is part of a
test suite
for the
User Agent Accessibility Guidelines (UAAG)
1.0
. This work is conducted by the
User Agent Accessibility Guidelines Working
Group
, which is part of W3C's
Web Accessibility Initiative (WAI)
. Please send comments on this test to w3c-wai-ua@w3.org (
public archive
).
Test created by:
- Dominique Kilman
- Colin Koteles
Last modified: $Date: 2003/04/02 23:46:29 $ by $Author: jongund $
Copyright
© 1999 - 2003
W3C®
(
MIT
,
INRIA
,
Keio
), All Rights Reserved. W3C
liability
,
trademark
,
document use
and
software licensing
rules apply.