Frames must have an accessible name

Every `<iframe>` and `<frame>` needs a short name, usually a `title` attribute, that describes what it contains, so screen reader users know whether it is worth entering.

Rule IDframe-title
ImpactSerious
Success criterion 4.1.2 Name, Role, Value · A
StandardsWCAG 2.0 · WCAG 2.1 · WCAG 2.2 · Section 508 · EN 301 549
Readabler fix Fixed with a text: from the page or written by AI

Example

Before
<iframe src="https://www.youtube.com/embed/x8Kq2" width="560" height="315"></iframe>

A screen reader announces “frame” or a meaningless file name, with no idea what is inside.

After
<iframe src="https://www.youtube.com/embed/x8Kq2" width="560" height="315" title="Video: how to measure your window for blinds"></iframe>

A screen reader announces “Video: how to measure your window for blinds, frame”.

Why it matters

Frames embed one page inside another: videos, maps, payment forms, chat widgets, ads. Screen readers announce each frame when the user reaches it and list all frames for quick navigation. The title is what they read. Without it, blind users hear only “frame”, or a URL, and must step inside to find out whether it holds the checkout form they need or an advert they want to skip.

Keyboard users of screen readers move through frames one by one, so a page with several unnamed embeds becomes a series of guesses. Voice control users also need a name to target the frame.

How to fix it

Add a title attribute to every visible frame. Describe the content, not the technology.

<iframe src="https://maps.example.com/embed?q=leeds" title="Map of our Leeds store"></iframe>

Videos and maps from embed codes. Copy-pasted embed codes often have no title or a generic one like “YouTube video player”. Replace it with the video's topic.

Payment and booking widgets. Name the task the frame performs:

<iframe src="https://pay.example.com/card" title="Card payment form"></iframe>

Frames with no user-facing content. Tracking pixels and sync frames should not be reachable at all. Hide them instead of naming them:

<iframe src="/analytics.html" aria-hidden="true" tabindex="-1" hidden></iframe>

When you cannot set title. An aria-label, or aria-labelledby pointing at a visible heading, also gives the frame a name.

Keep titles short and unique across the page. Also give the framed document its own <title>, which some screen readers read when entering it.

Checklist

  1. Add a title attribute to every visible iframe.
  2. Describe the content or task, not the technology.
  3. Replace generic titles from embed codes.
  4. Hide technical frames with aria-hidden and tabindex="-1".

How the check works

The check looks at every <iframe> and <frame>, skipping those removed from the tab order with a negative tabindex. It passes when the frame has a non-empty title, an aria-label, an aria-labelledby that points to text, or a presentational role. Otherwise it is reported. Whether the name actually describes the frame needs a human review.

Resources

Updated October 27, 2026