Free scan

Fix "Frame (iframe) without a title" in HTML

Why it's a problem

A screen reader announces “frame” and nothing more: the user cannot tell whether it holds a video, a map, a payment form or an advert, nor whether entering it is worthwhile.

How to fix it — HTML

Add a title attribute to every <iframe> describing its content in a few words. A purely decorative or empty frame should be removed from the tab order with aria-hidden and tabindex="-1" rather than left untitled.

Avoid
<iframe src="https://www.youtube.com/embed/…"></iframe>
Correct
<iframe
  src="https://www.youtube.com/embed/…"
  title="Démonstration : lancer un scan d'accessibilité en 60 secondes"
></iframe>

<!-- Cadre décoratif : hors parcours plutôt que sans titre -->
<iframe src="…" aria-hidden="true" tabindex="-1"></iframe>

RGAA criterion 2.1 — Cadres

Chaque cadre a-t-il un titre de cadre ?

How to check: official tests (in French)

  1. Test 2.1.1

    Chaque cadre (balise <iframe> ou <frame>) a-t-il un attribut title ?

Full page for criterion 2.1 · Official text: Référentiel général d'amélioration de l'accessibilité (RGAA) 4.1, DINUM, Licence Ouverte 2.0.

Check your site in 30 seconds

Conformly detects this kind of issue across all your pages, continuously, and alerts you on every regression.

Free scan