Why it matters
- A page shows a map, a video or a booking form from another site in an
<iframe>. A screen reader announces each frame by its name, and lists the frames of a page by them. - Without one, people hear "frame" and must enter it to learn what it is.
- WCAG 2.2 asks that every user-interface component have a name (success criterion 4.1.2, level A).
Example
<iframe id="map" srcdoc="<p>فرع الرياض</p>" width="300" height="150"></iframe>
<iframe id="map" srcdoc="<p>فرع الرياض</p>" width="300" height="150" title="خريطة فرع الرياض"></iframe>
How to fix
Give each frame a short title in the page's language:
html
<iframe id="map" srcdoc="<p>فرع الرياض</p>" width="300" height="150" title="خريطة فرع الرياض"></iframe>- Embed codes from video and map sites often leave the title out, or set it in English; edit it after pasting.
How we detect
- We render the page and run axe-core 4.13.0's
frame-titlerule in each engine. - It reports each
<iframe>and<frame>without an accessible name: notitle,aria-labeloraria-labelledby. - Frames hidden from screen readers are left out.