# Linter Rule: `iframe` elements must have a `title` attribute **Rule:** `html-iframe-has-title` ## Description Ensure that all `iframe` elements have a meaningful `title` attribute that describes the content of the frame. The title should not be empty or contain only whitespace. ## Rationale The `title` attribute on `iframe` elements provides essential context for screen reader users about what content the frame contains. Without this information, users of assistive technology cannot understand the purpose or content of the embedded frame, creating significant accessibility barriers. ::: tip Note ` ``` ### 🚫 Bad ```erb ``` ## References - [HTML: `iframe` element](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/iframe) - [HTML: `title` attribute](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/title) - [erblint-github: GitHub::Accessibility::IframeHasTitle](https://github.com/github/erblint-github/blob/main/docs/rules/accessibility/iframe-has-title.md)