Technique H35: Providing text alternatives on applet elements
About this Technique
This technique is not referenced from any Understanding document.
This technique applies to HTML and XHTML Documents that load Java applets where applet is not deprecated.
Techniques are examples of ways to meet Web Content Accessibility Guidelines (WCAG). They are not required to meet WCAG. Content can satisfy the normative requirements of WCAG even if it does not use any of the documented techniques. See About WCAG Techniques.
Description
Provide a text alternative for an applet by using the alt attribute to label an applet
and providing the text alternative in the body of the applet element. In this technique, both mechanisms
are required due to the varying support of the alt attribute and applet body text by
user agents.
Examples
Example 1: An applet to play the tic-tac-toe game.
<applet code="tictactoe.class" width="250" height="250" alt="tic-tac-toe game">
tic-tac-toe game
</applet>
Tests
Procedure
- View the source code of the applet element
- Check that the applet element contains an
altattribute with a text alternative for the applet - Check that the applet element contains a text alternative for the applet in the body of the applet element
Expected Results
- Checks #2 and #3 are true.