Require Frame Title

ID

html.frame_title_require

Severity

low

Remediation Complexity

low

Remediation Risk

low

Remediation Effort

low

Resource

Reliability

Language

Html

Tags

accessibility, reliability

Description

Flags an opening <iframe> or <frame> element that lacks a non-blank title attribute.

Rationale

Assistive technologies announce embedded frame content using its title. Without one, screen reader users hear only a generic "frame" with no indication of what it contains, and cannot decide whether to navigate into it. A present-but-blank title is just as unhelpful as a missing one.

<iframe src="/map"></iframe>             <!-- FLAW — no title -->

<iframe src="/map" title="Map"></iframe> <!-- OK — describes the content -->

Remediation

Add a title attribute that briefly describes the frame’s content, e.g. <iframe src="/map" title="Office location map">.