iframeTitles
Reports <iframe> elements without a title prop.
✅ This rule is included in the jsxlogicalandlogicalStrictpresets.
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.
Examples
Section titled “Examples”<44AE spans="tyle--0:#7F">D44AE>ECE6if D <44AE spans="tyle--0:#7F">D44AE>ECE6if D <44AE spans="tyle--0:#7F">D44AE>ECE6if D When Not To Use It
Section titled “When Not To Use It”If you’re not using iframes in your application, or your iframes are implicitly handled by a framework, you can disable this rule.
Further Reading
Section titled “Further Reading”Equivalents in Other Linters
Section titled “Equivalents in Other Linters”- Biome:
useIframeTitle - ESLint:
jsx-a11y/iframe-has-title - Oxlint:
jsx-a11y/iframe-has-title
