|
Accessible HTML
Page 3
Applets and alt text
It's also important to include alt tags when you use Java applets, since text browsers don't support Java.
<applet code=robertPlant alt=" [Robert Plant applet unavailable] ">
The applet alt element works fine with Java-enabled browsers (when users have Java turned off), but nonsupporting browsers will simply ignore any <applet> tags. You can remedy this by simply adding a line of text within the <applet tag>.
<applet code=robertPlant alt=" [Robert Plant applet unavailable] "> If your browser were capable of handling applets, you'd could poke Robert Plant in the eye
right here.
</applet>
Before we move on, I should go over a couple other things about alt text. It's not necessary to include <br> tags in your alt text, because screen-reading and voice-recognition software usually break lines properly anyway. Also, don't use smiley faces, either. ASCII art is incomprehensible and will usually crash assistive technology.
next page»
|
|
|