Skip to content

Files

Latest commit

 

History

History
28 lines (22 loc) · 582 Bytes

iframe-has-title.md

File metadata and controls

28 lines (22 loc) · 582 Bytes

Pattern: Missing iframe title

Issue: -

Description

Iframe elements must have a title attribute that describes their content. Without a title, screen reader users cannot efficiently determine the purpose of an iframe without exploring its content.

Examples

Example of incorrect code:

<iframe src="map.html" />
<iframe src="video.html" title="" />
<iframe src="form.html" title={undefined} />

Example of correct code:

<iframe
  src="map.html"
  title="Store location map"
/>
<iframe
  src="video.html"
  title="Product demonstration video"
/>