Warning Iframe missing a title attribute

Why every <iframe> needs a title attribute describing its embedded content, the same way an image needs alt text.

The validator flags any <iframe> with no title attribute, or one that's present but empty.

Example

<!-- Wrong -->
<iframe src="/checkout/payment"></iframe>

<!-- Right -->
<iframe src="/checkout/payment" title="Payment form"></iframe>

Why it matters

An <iframe> embeds an entire separate document, and screen readers announce it as a distinct region when a user navigates by landmarks or frames — but with no title, that announcement is just "frame," with no indication of what's inside. A sighted user can tell from the rendered content, but a screen reader user has to enter the frame and start exploring blind to find out. This is especially common with third-party embeds (payment widgets, maps, video players) that get dropped into a page without a descriptive title being added alongside them.

Frequently asked questions

What makes a good iframe title?

A short description of what the frame contains or does — "Payment form," "YouTube video: product demo," "Interactive map of store locations." It should tell a screen reader user whether it's worth entering the frame, the same way alt text does for images.

Does this apply to iframes used for ads or tracking pixels?

Technically yes, though those are often hidden from all users via CSS or size, in which case they're typically not part of the accessible page content at all. For any visible, meaningful embed, a real title is worth adding.