Skip to main content Skip to navigation

Frames

Frames

When using frames, it’s important that all content contained in them is accessible.

Testing

  1. Identify all frames/ iframes on a page.
  2. Using the keyboard, navigate to each frame to ensure content is accessible.
  3. Check the title or name attribute of each frame for a description of the content.
  4. check that the scrolling attribute is not set to no. scrolling=’auto’ is the best choice so those changing sizing can view all content.

Examples

FAILURE

<iframe src="../iframeform/"></iframe>

This iframe doesn’t have a title or name.

<iframe src="../iframeform/" name='Provide an address form'></iframe>

This name isn’t correct.

PASSES

<iframe src="../iframeform/" title='Provide Name Form'></iframe>

Correct title is provided. This would also pass if this information was in a name attribute.

The original text for this document was created by the 18F and made available in the public domain under the CC0 1.0 Universal license.

Washington State University has made modifications to the original document. These changes are also licensed as CC0 1.0. Please feel free to reuse this content.