Skip to main content
Checks that iframes and frames have title attributes
Rule IDa11y/frame-title
CategoryAccessibility
ScopePer-page
Severityerror
Weight7/10

Solution

All iframes must have a title attribute describing their content. This helps screen reader users understand what the iframe contains. Example: <iframe src='video.html' title='Product demo video'>

Enable / Disable

Disable this rule

squirrel.toml
[rules]
disable = ["a11y/frame-title"]

Disable all Accessibility rules

squirrel.toml
[rules]
disable = ["a11y/*"]

Enable only this rule

squirrel.toml
[rules]
enable = ["a11y/frame-title"]
disable = ["*"]