# frame-title-require

> Requires that frame and iframe elements have an accessible name for screen readers and assistive technologies.

A `<frame>` or `<iframe>` element must have an accessible name.

Level: Warning

## Config value

[Section titled “Config value”](#config-value)

* `true`: enable rule
* `false`: disable rule

### The following patterns are **not** considered rule violations

[Section titled “The following patterns are not considered rule violations”](#the-following-patterns-are-not-considered-rule-violations)

```html
<iframe src="content.html" aria-label="Interactive content"></iframe>
<iframe src="content.html" aria-labelledby="frame-heading"></iframe>
<iframe src="content.html" title="Embedded content"></iframe>
<iframe src="content.html" role="presentation"></iframe>
<frame src="content.html" title="Navigation frame">
```

### The following patterns are considered rule violations

[Section titled “The following patterns are considered rule violations”](#the-following-patterns-are-considered-rule-violations)

```html
<iframe src="content.html"></iframe>
<iframe src="content.html" aria-label=""></iframe>
<iframe src="content.html" title=""></iframe>
<frame src="content.html">
```

## Why this rule is important

[Section titled “Why this rule is important”](#why-this-rule-is-important)

The `<frame>` or `<iframe>` element must have an accessible name to help screen readers and assistive technologies understand the content of the frame or iframe.

Further reading: [Axe Rules - frame-title](https://dequeuniversity.com/rules/axe/4.8/frame-title)