Inline frames generally integrate well with assistive technologies, but the following accessibility considerations should always be adhered to when using them:
titleattribute on the
iframe, a relative unit such as percentage or ems should be used to facilitate resizing.
autoso that if the reader resizes the content in the frame it can still be accessed if it becomes bigger than the available space.
iframeelement 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
none, and height and width to 0. To ensure that readers cannot tab to the element, set the
role="presentation"when indicating an
iframedoes 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.