Rule

Frame titles

Frames must have a title describing their content.

Rule
frame-title
WCAG 2.2
4.1.2 Name, Role, Value (opens in a new tab) (Level A)
Severity
Serious

What it checks

The rule looks at every <iframe> and <frame>. It fails one with no accessible name from a title attribute, an aria-label or an aria-labelledby. Screen readers announce a frame by its name, and without one a user cannot tell what it holds before going into it.

Example

Fails

<iframe src="/embed/store-map.html" width="600" height="400"></iframe>

Passes

<iframe src="/embed/store-map.html" width="600" height="400" title="Map of store locations"></iframe>

The engine is tested against both examples.

How to fix it

Add a title to the frame that says what it contains, such as title="Map of store locations".

Check your own pages

This rule runs in every pour audit: the browser extension, the bookmarklet, the command line and the editor. Get pour, free.