Skip to main content

Applets, plug-ins, and non-HTML content

Web checkpoint 6

When an applet, plug-in or other non-HTML content requiring another application is required to be present, provide a link to an applet, plug-in or other application that is directly accessible, or provide alternate content for applets, plug-ins, or other applications which are not directly accessible.

 


Rationale

Applet and plug-in technologies were developed to deliver non-html coded content to enhance visual, audio, interactive effects, and to deliver other applications in the browser environment. HTML version 4 introduced the OBJECT element as a standard means for encoding other applications. When a Web site or Web application requires execution of these technologies in order to successfully complete tasks or to interpret content, it is important that both the informational content and the user interface be accessible to assistive technologies. In some cases, the user interface and the informational content are part of the same applet, plug-in, or application. For example, Java applets and Flash plug-ins present the user interface as part of the content. In other cases, the user interface is separate from the content. Multimedia plug-ins such as QuickTime, Real Audio, and Windows Media Player; and document reader plug-ins such as Acrobat Reader, have a separate player user interface (play, stop, fast forward, etc.) that controls the playing of the audio, video, or document content. Making the multimedia content accessible is explained in Checkpoint 4: Multimedia for the various audio and video formats. Document content accessibility is explained in Documentation Checkpoint 1 for formats such as Adobe Portable Document Format (PDF).

Applets

Applets are programs designed to be executed or launched from within a Web page. Simple applets can be compatible with screen readers, magnifiers, and other assistive technologies when the user interface is made up of only standard system controls that are supported by assistive technologies. Most text-only browsers, such as Lynx, and most assistive technologies do not support applets. Even when the browser and assistive technology combination support running applets, the content and programming could be implemented in a way that makes it inaccessible to the user. Typically the problem is when the applet uses non-standard controls or when the applet programming extends standard controls to create a custom look. To make applets directly accessible to assistive technology, you must use the techniques in the IBM Java Accessibility Guidelines for Java2 applets and the IBM Software Accessibility Guidelines for all other Java 1.1.x, Visual Basic, C++, etc. software coded applets. If the applet is directly accessible by meeting the Java or software checklist, then alternative content is not required.

Plug-ins:

Select a plug-in that is supported by the browsers and platforms used by your audience and insure that both a plug-in user interface and informational content is accessible. Alternatively provide equivalent content that does not require a plug-in. Some plug-ins are not supported by all browsers on all platforms. Some non-HTML file formats (media types) are supported by more than one plug-in or player. Many multimedia players are supported by Lynx and other assistive technologies such as screen readers, magnifiers, and voice input recognition command and control. Some plug-ins are rendered on the page inside the browser window. Even though these in-line plug-ins have visible controls they may not be operational with the keyboard. Keyboard operation depends on the coding of HTML that launches the plug-in and the plug-in itself. For example the Spacebar will start and stop the playback of the video clip in some plug-ins. By always providing a link to the non-HTML file itself, the chances are greatly increased that an accessible player is available to your audience on their platform that can play the multimedia content. Those plug-in players with a separately launchable user interface outside the browser are responsible for insuring compliance with the IBM Java Accessibility checklist for Java2 plug-ins and the IBM Software Accessibility checklist for all other Java 1.1.x , Visual Basic, C++, etc. software coded plug-ins.

Objects:

The OBJECT element was added to HTML version 4 (link resides outside of ibm.com) and is supported by the newer browsers. The APPLET element was deprecated in favor of the OBJECT element, but is still used on many Web sites and supported by many browsers. Browsers will first try to render the object, but if the browser is not able to render it for any reason (configured not to, wrong platform, not supported, etc.) the browser will try to render the object's contents. Those applications with a separate user interface launched by the OBJECT element outside the browser are responsible for insuring compliance with the IBM Java Accessibility checklist for Java2 objects and the IBM Software Accessibility checklist for all other Java 1.1.x , Visual Basic, C++, etc. software coded objects. 


Techniques for Applets, Plug-ins, and Objects

The following techniques and examples support Checkpoint 6 from the IBM Web Accessibility Checklist.

Applet techniques:

Please Note: Applets, even when they are coded using the techniques below, may still be inaccessible. Existing screen readers do not have the ability to recognize the applet, move focus into the applet, and exit the applet. Therefore, you should consider removing all applets from your websites or providing an accessible alternative method for performing the function.

The following techniques are the minimum required to make applets accessible:


Plug-in techniques:

One or more of the following techniques are the minimum required to make the plug-in interface and content accessible:

Note: Video content is accessible to a person who is deaf or hard of hearing, but an equivalent alternative to the visual content is needed by a person who is blind. Audio content is accessible to a person who is blind or has vision impairments, but an equivalent to the audio content is needed by the person who is deaf. See Checkpoint 4: Multimedia for more information about making audio and visual content accessible.

Object techniques:
Make the object programming and content directly accessible following the appropriate Java Accessibility or Software Accessibility checklist. If the object is not directly accessible, then the requirement is to also provide an equivalent alternative using the following technique:


Testing

Test the Web site to ensure that it complies with accessibility requirements.

Tools

You will need to install the following tools to test this checkpoint:

Techniques

The following techniques are required to verify this checkpoint:

Techniques
  Action Result
1. If the Web site includes applets, test with a Web accessibility checking tool to identify missing alt="text" attributes for applets. Note that the accessibility checking tool may not be able to test the accessibility of the applets. Refer to the manual techniques below for testing the accessibility of applets. Pass:
  • The Web checking tool does not identify any applets with missing alternative text.
Fail:
  • The Web checking tool lists one or more applets without alternative text.
2. If the Web site includes applets or objects, test with a screen reader to determine if the content is directly accessible. If you are testing Java applets, use a screen reader that supports applets.
  • Use only the keyboard to navigate the controls.
  • Exercise all applet or object functions with the screen reader.
For more information, see:
Pass:
  • The applet or object can be navigated using only the keyboard.
  • All controls and content in the applet or object are read by the screen reader.
Fail:
  • One or more controls cannot be accessed using the keyboard.
  • The content and/or controls are not read by the screen reader. If the content is not directly accessible, perform the next test to determine if an accessible alternative has been provided for the applet or object.
3. If the Web site includes applets or objects that are not directly accessible, test with a screen reader to determine if an equivalent alternative has been provided and is accessible.
  • Check the page for a link to an accessible alternative. Activate the link and verify the keyboard can be used to navigate the content.
  • If the applet does not require user interaction, verify there is a text explanation for the applet content or a link to an accessible alternative.
Pass:
  • The Web page includes a link to an accessible alternative for the applet.
  • If the alternative is in HTML, the content can be read by a screen reader.
  • The applet requires no user interaction and provides a text description of the applet.
Fail:
  • There are no accessible alternatives provided.
  • There is a link to an alternative, but it is also not accessible.
4. If Web site includes plug-ins, test with a screen reader to determine if content and user interface is accessible.
  • Navigate to controls using the keyboard.
  • Test with a screen reader. Verify all content and controls are spoken.
Pass:
  • The plug-in controls can be navigated with the keyboard.
  • The plug-in content and user interface is read by a screen reader.
Fail:
  • There are no accessible alternatives provided.
  • There is a link to an equivalent alternative, but it is also not accessible.

Additional Techniques

In addition to the required tests, these techniques can be used to quickly verify some accessibility features of applets, plug-ins and objects.

For more information on these techniques, see Additional techniques for testing Web accessibility.


©2001, 2008 IBM Corporation

Last updated January 17, 2008.