Skip to content

iframeTitles

Reports <iframe> elements without a title prop.

✅ This rule is included in the jsx logical and logicalStrict presets.

The title attribute on <iframe> elements provides a label that describes the iframe’s content to screen reader users. Without it, users may have difficulty understanding the purpose of the iframe.

This is required for WCAG 2.4.1 and 4.1.2 compliance.

<
any
iframe
/>
<
any
iframe
src: string
src
="https://example.com" />
<
any
iframe
title: string
title
="" />
<
any
iframe
title: undefined
title
={
var undefined
undefined
} />

If you’re not using iframes in your application, or your iframes are implicitly handled by a framework, you can disable this rule.

Made with ❤️‍🔥 around the world by the Flint team and contributors.