According to the Web Content Accessibility Guidelines (WCAG), Version 1.0, frames are inaccessible and any information contained within a frame must be provided elsewhere (Checkpoint 1.1). Some assistive technologies do now interact with frames and iframes, however it is still important to provide equivalent, accessible content where they are used.
The use of standard frames is now quite uncommon and not recommended practice. iFrames are more common but still require strong consideration of their benefit against the issues they raise with accessibility and website usability. Some of the issues raised by iFrames are that they:
Therefore if you use frames or iFrames you must provide equivalent, accessible content in HTML or text.
Checkpoint 1.1 requires that a text equivalent is provided for every non-text element (e.g., via "alt", "longdesc", or in element content). This includes: frames.
Checkpoint 6.5 requires that dynamic content is accessible or that provide an alternative presentation or page is provided (eg. NOFRAMES for FRAME element)
Checkpoint 12.2 requires that the purpose of frames and how frames relate to each other is described if it is not obvious by frame titles alone.
An iFrame (also known as an inline frame) places one HTML document in a frame inside a normal (rather than frameset) HTML document. iFrames can also be used as the “target" of a link, in which case only the iFrame is opened. Alternative text is provided within the <IFRAME> tag set, for example:
<iframe src ="html_intro.asp" width="100%" height="300">Alternative text</iframe>
Note: the iFrame element is not supported in HTML 4.1 Strict DTD and in XHTML 1.0 Strict DTD.
It is important to provide an equivalent of the content within the FRAME or IFRAME.
<FRAMESET title="Web site">
<FRAME src="nav.html" title="Navigation">
<FRAME src="contents.html" title="Contents of page">
<NOFRAMES>
Equivalent content
</NOFRAMES>
</FRAMESET>
<IFRAME src ="html_intro.asp" width="100%" height="300">
Equivalent information
</IFRAME>
It is important that when users increase the browser text size that the iFrame element scales with the size of the text. This can be done using the default IFRAME SCROLLING attribute: auto.
Links clicked within the iFrame will open within the iFrame element, therefore it is important to ensure all iFrame content links are set to open in a new browser window. This can be achieved by using the HTML TARGET="_blank" attribute and value. For example:
<A HREF="http://www.vic.gov.au/" TARGET="_blank">Link</A>
This accessible iFrame resizes with text resize, opens links in new windows and offers a complete equivalent for users without iFrames.
Source: Accessibility Toolkit Version 3, September 2009. Section 5 - Frames and iFrames.
Last updated: 1 June 2010
Tweet
(This document requires the use of Adobe Acrobat Reader). Department of Business and Innovation, Information Victoria, September 2009 - Version 3.1.1 - March 2011 (minor edits). "The Victorian Government’s Accessibility Standard requires that: All websites must be Level AA compliant (W3C Web Content Accessibility Guidelines, Version 1.0); Where audience needs are specific, websites should become Level AAA as appropriate. This toolkit shows departments and agencies how to conform to this policy and the W3C Web Content Accessibility Guidelines, Version 1.0. The toolkit is designed for Victorian Government business managers and web site owners to enable them to effectively present the business case for accessibility and manage the processes involved..."
An accessible HTML version of the toolkit is currently under development.
(This document requires the use of Microsoft Word Reader). Department of Business and Innovation, Information Victoria, September 2009 - Version 3.1.1 - March 2011 (minor edits). "The Victorian Government’s Accessibility Standard requires that: All websites must be Level AA compliant (W3C Web Content Accessibility Guidelines, Version 1.0); Where audience needs are specific, websites should become Level AAA as appropriate. This toolkit shows departments and agencies how to conform to this policy and the W3C Web Content Accessibility Guidelines, Version 1.0. The toolkit is designed for Victorian Government business managers and web site owners to enable them to effectively present the business case for accessibility and manage the processes involved..."
An accessible HTML version of the toolkit is currently under development.
Enter your email address to subscribe or unsubscribe from the eGov What's New mailing list.
Please enter email address of the person you wish to send this page to.