Iframe accessible name is unclear
| Field | Value |
|---|---|
| Rule code | Iframe_Name_WeakName |
| 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 with an accessible name that does not appear to be clear and concise. Iframe and Frame HTML tags must identify themselves with a concise and unique title attribute or ARIA attribute equivalents. Unclear accessible names can cause confusion and can become time-consuming to interact with and understand. Ensure that the associated text is specific to the element and avoid repeatable generic terms.
How to fix
Each <iframe> element needs to have a descriptive 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 for tutorial" allowfullscreen></iframe>