Skip to content

Latest commit

 

History

History
26 lines (19 loc) · 655 Bytes

iframe-has-title.md

File metadata and controls

26 lines (19 loc) · 655 Bytes

Iframe has title

Rule Details

<iframe> should have a unique title attribute that identifies the content. The title will help screen reader users determine whether to explore the frame in detail. If an <iframe> contains no meaningful content, hide it by setting aria-hidden="true".

Examples

Incorrect code for this rule 👎

<iframe src="../welcome-video"></iframe>

Correct code for this rule 👍

<!-- good -->
<iframe  src="../welcome-video" title="Welcome to GitHub Video" ></iframe>
<!-- also good -->
<iframe aria-hidden="true">
    <!-- Meaningless JavaScript code -->
</iframe>