Published on

How to Describe <frame> and <iframe> Tags to Screen Readers

Authors
  • avatar
    Name
    hwahyeon
    Twitter
<frame> or <iframe> elements do not have a title

This error was encountered in Lighthouse.

Just like the alt attribute in the <img> tag, the title attribute in <iframe> or <frame> is written for users who rely on screen readers. By adding an appropriate description, screen readers can better explain the purpose of the frame, improving the user experience.

Examples:

<iframe src="https://maps.example.com" title="Company location map"></iframe>
<iframe src="https://video.example.com" title="Product demo video"></iframe>