Skip to content

Rule · Accessibility

<iframe> has no title

a11y/frame-titlewarnvoid a11yupdated

Why it matters

Screen readers announce an iframe by its title. Without one, users hear only "frame" and cannot tell a video, map or ad apart from content.

How to fix it

Add a short title that describes the embedded content.

Example

tsx
<iframe src="https://www.youtube-nocookie.com/embed/…" title="Product demo video"></iframe>

References

void a11y reports 48 rules in this category. WCAG 2.2 AA through axe-core, plus checks axe can't do alone: visible keyboard focus, 24/44px target size on mobile, 320px reflow and disabled zoom.