Screen reader users rely on frame titles to describe the contents of frames.
Lighthouse reports when any
<iframe> elements do not have a title:
How to fix this problem
To fix this problem,
provide unique and descriptive
title attributes for all
Screen reader users rely on a frame title to describe the contents of the frame.
Navigating through frames and IFrames can quickly become difficult and confusing
for users of this technology if the frames are not marked with a title attribute.
Additionally, best practice is to give the enclosed document a title element with content identical to the title attribute. For example:
<iframe title="My Daily Marathon Tracker" src="https://www.mydailymarathontracker.com/"></iframe>
Learn more in Frames must have title attribute.
Tips for creating descriptive frame titles:
- As previously mentioned, give the enclosed document a title element with content identical to title attribute.
- Replace placeholder titles such as “untitled frame” with a more appropriate phrase.
- Make each title unique - don’t duplicate titles, even if they are similar.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.