<frame> or <iframe> elements have a title

Embedded frames have titles so screen readers can describe their content.

On this page

Impact

ScanGov impact ratings

About

Screen reader users rely on frame titles to describe the contents of frames.

Risks

Screen reader users cannot identify or interact with elements.

Why it's important

Gives screen reader users meaningful descriptions of interactive elements so they can understand and use them.

User stories

As a screen reader user, I want all interactive elements to have clear, descriptive names so that I know what they do.

Code

Failing pattern:

<!-- Fail: no title attribute -->
<iframe src="https://example.gov/map"></iframe>

Passing pattern:

<!-- Pass: descriptive title -->
<iframe src="https://example.gov/map" title="Office locations map"></iframe>

Error

ScanGov messaging when a site fails a standard:

Failed: <frame> or <iframe> elements have a title

Guidance

Indicators

On this page