Skip to content

Frame without a title

a11y-frame-titlemoderate
On this page

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

Wrong
<iframe id="map" srcdoc="&lt;p&gt;فرع الرياض&lt;/p&gt;" width="300" height="150"></iframe>
Right
<iframe id="map" srcdoc="&lt;p&gt;فرع الرياض&lt;/p&gt;" 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="&lt;p&gt;فرع الرياض&lt;/p&gt;" 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

  1. We render the page and run axe-core 4.13.0's frame-title rule in each engine.
  2. It reports each <iframe> and <frame> without an accessible name: no title, aria-label or aria-labelledby.
  3. Frames hidden from screen readers are left out.