A Practical Guide to Iframe Titles and Embedded Content
Labeling embedded frames so assistive technology users know what each one contains.
On this page
The key figures
- Title attribute
- gives an iframe an accessible name
- Hidden frames
- tracking iframes should be hidden from assistive technology
- Keyboard
- focus moves into iframes and must be able to leave
- Performance
- iframes can be lazy loaded
Why this is worth getting right
Unlabeled iframes are announced as anonymous frames, leaving screen reader users to guess what is inside.
Do this, not that
Do
- Title every meaningful iframe
- Hide invisible utility iframes from assistive technology
- Check keyboard entry and exit
- Lazy load offscreen iframes
- Audit third-party embeds for accessibility
Don’t
- Generic titles such as iframe
- Untitled embedded videos and maps
- Focus trapped inside embeds
- Assuming third-party embeds are accessible
When to bring in help
Our advice Bring in help when pages rely on many third-party embeds.
Where this comes from
- W3C Web Accessibility Initiative — Easy Checks
- MDN Web Docs — The Inline Frame element
The figures and practices above come from the sources listed.
Working on something like this?
We take on Performance & Accessibility work for teams who want it done once, properly. Tell us what you are building and we will tell you honestly whether we are the right studio for it. Start a project.
Where to go next
Spotted something wrong? Report an error on this page. We correct on the page and say what changed.