Why this matters
Without a frame title, screen reader users hear 'frame' or just the src URL — they have no idea whether they're entering a video, a map, a payment form, or an advertisement. This is especially critical for embedded payment widgets and Google Maps.
Code examples
✗ Incorrect — fails WCAG
<iframe src="https://www.youtube.com/embed/abc123"></iframe> <iframe src="https://maps.google.com/maps?q=Memphis"></iframe>
✓ Correct — passes WCAG
<iframe src="https://www.youtube.com/embed/abc123" title="Introduction to WCAG 2.2 accessibility standards" ></iframe> <iframe src="https://maps.google.com/maps?q=Memphis" title="Map showing our Memphis office location" ></iframe>
How to fix it — step by step
- 1Add a title attribute to every <iframe> element
- 2Make the title descriptive — describe what the iframe contains, not just 'iframe'
- 3For YouTube embeds: title='Video: [video title]'
- 4For Google Maps: title='Map of [location]'
- 5For payment widgets: title='Secure payment form'
- 6If the iframe is decorative and has no meaningful content, add title='decorative' and aria-hidden='true'
Reference: WCAG 2.2 Success Criterion 4.1.2 (Level A)
Test it for free
Use WebPossum to automatically detect this violation and every other WCAG 2.2 issue on your site. Free, instant, no signup required.