SeriousWCAG 4.1.2 · Level A
frame-titleEmbedded frame has no title
An <iframe> without a title is announced as just “frame”, so people don’t know whether it is a map, a video or a payment form. Add a short title that says what is inside.
Who it hurts
Screen reader users moving between frames on a page.
Embedded maps, videos, chat widgets and payment fields are the usual cases.
How to fix it
Pick your stack. Review every change before you ship it.
Before
<iframe src="https://www.google.com/maps/embed?…"></iframe>After
<iframe src="https://www.google.com/maps/embed?…" title="Map: our shop on Keizersgracht"></iframe>Check it by hand too
List the frames with your screen reader; each title should say what it contains.
Automated checks find a large share of accessibility problems, but not all of them. Passing this check does not on its own make a page compliant.
WCAG reference
- 4.1.2 Name, Role, Value (Level A). Understanding 4.1.2