EPUB 3 Accessibility Guidelines

Inline Frames

Inline frames generally integrate well with assistive technologies, but the following accessibility considerations should always be adhered to when using them:

Example

Example 1 — An accessible iframe
<iframe
        href="quiz01.xhtml"
        title="Quiz 1"
        class="quiz">
   Your reading system does not support
   inline frames. Please follow <a 
   href="quiz01.xhtml">this link</a> 
   to open the associated content document.
</iframe>
Example 2 — An invisible iframe
<iframe
        href="script.xhtml"
        title="empty"
        tabindex="-1"
        height="0"
        width="0"
        class="hidden">
</iframe>

Compliance References and Standards

Additional Resources

Frequently Asked Questions

Should I set 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.