Inline frames generally integrate well with assistive technologies, but the following accessibility considerations should always be adhered to when using them:
title
attribute on the iframe
element).iframe
, a relative unit such as percentage or
ems should be used to facilitate resizing.auto
so that if the reader resizes the content in the frame
it can still be accessed if it becomes bigger than the available space.iframe
element should provide embedded fallback content for reading systems that do
not support inline frames (e.g., a direct link to the content file).title
, set
its CSS display
property to none
, and height and width to 0. To ensure that
readers cannot tab to the element, set the tabindex
attribute to -1
.role="presentation"
when indicating an
iframe
does not contain user content?No, it is not valid to use the presentation role on iframe
elements. The presentation
role only removes the element it is on from the accessibility tree, not its descendant content,
so would not have the desired effect if used.