Inline frames (iframes)
When using iframe
s, it’s important that all content contained in them is accessible.
Testing
- Identify all
iframe
s on a page. - Using the keyboard, navigate to each
iframe
to ensure content is accessible. - Check the
title
orname
attribute of eachiframe
for a description of the content.
Examples
Failures
<iframe src="../iframeform/"></iframe>
This
iframe
doesn’t have atitle
orname
.
<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 aname
attribute.