Skip to content

useIframeTitle (HTML)

biome.json
{
"linter": {
"rules": {
"a11y": {
"useIframeTitle": "error"
}
}
}
}

Require a title on every <iframe>.

Screen readers use the title to identify the embedded content before a user enters the frame. A static HTML title must be non-empty and should describe the frame’s purpose. Vue bindings are accepted without evaluating the value they produce at runtime.

<iframe></iframe>
code-block.html:1:1 lint/a11y/useIframeTitle ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

✖ Provide a title attribute when using iframe elements.

> 1 │ <iframe></iframe>
│ ^^^^^^^^
2 │

ℹ Screen readers rely on the title set on an iframe to describe the content being displayed.

<iframe title=""></iframe>
code-block.html:1:1 lint/a11y/useIframeTitle ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

✖ Provide a title attribute when using iframe elements.

> 1 │ <iframe title=""></iframe>
│ ^^^^^^^^^^^^^^^^^
2 │

ℹ Screen readers rely on the title set on an iframe to describe the content being displayed.

<iframe title="title"></iframe>