Frames possess inherent problems for accessibility. Fundamentally, it is difficult to restyle content within frames since even simple restyling, such as increasing text size, often results in clipping or the need for horizontal scrolling. Titling of frames by authors (when done at all) is usually so ambiguous that it remains difficult for speech users to know the potential contents of a frame. It is also difficult for speech users what the potential changes will occur to all frames when they select a link in one particular frame. In general, most web developers appear to be staying clear of frame-based content, a trend that supports accessibility.
The one notable exception to this trend is with web application developers who use “hidden” frames to setup server/browser communications. These communications can include information about user interactions and/or automatic notifications of new information that might be useful to the user. One of the major problems with the use of hidden frames for automation is that it is often confusing to screen reader users. If the screen reader interprets the automation activity as new information to the user, it can cause weird screen reader behaviors which lead to screen reader users being unable to access the content of a web resource.
Benefits to People with Disabilities
- Titling frames helps screen readers navigate the content of a website.
- Frames typically cause problems for screen reader users when they are used to dynamically update web pages. When content changes dynamically, the screen reader may abruptly change focus to the beginning of a document. This is very disorienting to screen reader users.
Benefits to Everyone
- Frames cause problmes for all users since the back button does not reliably return the user to the previous content of frames.
Benefits to Developers
- Frames may be convenient to the developers, but cause many problems for users and sometimes increase development and maintenance cost of website due to the complexities of frame content interaction.
titleattribute should describe the purpose and contents of the iframe
titleattribute should describe the purpose and contents of the frame
- Hidden frames can be titled as “hidden 1”, “hidden 2”, “hidden 3,” etc.
Related Accessibility Requirements
Illinois Information Technology Accessibility Standards
- 12.1 Provide concise, unique, and understandable titles for frames.
- 12.2 Avoid using hidden, empty, or non-essential frames.
Web Content Accessibility Guidelines (WCAG) 2.0
- 4.1.2 Name, Role, Value: For all user interface components (including but not limited to: form elements, links and components generated by scripts), the name and role can be programmatically determined; states, properties, and values that can be set by the user can be programmatically set; and notification of changes to these items is available to user agents, including assistive technologies.