Skip to main content
U.S. flag

An official website of the United States government

The .gov means it’s official.
Federal government websites often end in .gov or .mil. Before sharing sensitive information, make sure you’re on a federal government site.

The site is secure.
The https:// ensures that you are connecting to the official website and that any information you provide is encrypted and transmitted securely.

Inline frames (iframes)

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

Testing

  1. Identify all iframes on a page.
  2. Using the keyboard, navigate to each iframe to ensure content is accessible.
  3. Check the title or name attribute of each iframe for a description of the content.

Examples

Failures

<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.

18F Accessibility

An official website of the GSA’s Technology Transformation Services

Looking for U.S. government information and services?
Visit USA.gov