Iframe missing accessible name
| Field | Value |
|---|---|
| Rule code | Iframe_Name_Missing |
| WCAG conformance level | A |
| WCAG success criterion | 4.1.2 Name, Role, Value |
| Must be fixed at source | No |
Description
We detected an iframe HTML element without an accessible name provided through the title attribute. Iframe and Frame HTML tags must identify themselves with a concise and unique title attribute or ARIA attribute equivalents. If accessible names are missing from an Iframe or Frame element, their purpose and functionality is unclear.
How to fix
Each <iframe> element needs to have a title attribute. The title description describes the contents of the frame for screen reader users.
<iframe width="560" height="315" src="https://www.youtube.com/embed/example123" title="YouTube video player" allowfullscreen></iframe>