Skip to content

Frames need titles that tell them apart

  • Rule: axe/frame-title-unique
  • Checks: Frames must have a unique title attribute
  • WCAG: 4.1.2
  • Fix class: content: A fix needs authored text.
  • People who use a screen reader or a braille display, most of them blind.

Frames with different content share a title, often an embed’s default such as “YouTube video player”

Section titled “Frames with different content share a title, often an embed’s default such as “YouTube video player””

Give each frame a title that names its own content, such as the video’s topic, decided from what the frame shows. axe reports shared titles for review rather than as failures.

<iframe src="/embed/video/setup" title="Video: setting up your account"></iframe>
<iframe src="/embed/video/billing" title="Video: managing billing"></iframe>

Confirm that they do, and leave them: frames with the same content may share a title.

Numbering the titles, such as Video 1 and Video 2

Section titled “Numbering the titles, such as Video 1 and Video 2”

axe accepts them, but screen reader users still cannot tell which frame holds what.

axe-core’s documentation of the rule

CORA’s fix guidance adapts content from accessibility-agents, under the MIT License: see its notice.