An iframe title describes the content inside the embedded frame. This is especially useful when a page contains multiple video players and a user relies on a screen reader to differentiate between them. The label should be assigned to the iframe element on the hosting page. Two frames both labeled simply "Video Player," however, offer little insight into their specific content.
Name the storyline visible in the video.
A service page displays two clips of the same device. In the first clip, a filter is removed, and in the second, a new filter is installed. Both thumbnails show the housing and the filter. The first iframe can have the attribute title="Video: Filter removed", while the second can have title="Video: Install new filter". Visible headings next to the clips may also use these phrases.
The HTML attribute name serves a different purpose. It can, for example, designate a frame as a target for navigation and does not replace the readable title. The page title of the loaded document is a separate specification: the iframe title should clearly indicate, from the parent page, which frame is intended. The W3C technique H64 describes this distinction.
W3C Technique H64: The title attribute on iframe
After saving, check the completed page.
- Use the existing caption field of the CMS if it actually sets the title attribute of the iframe. If you can modify the provided embedding code, add or correct only the title attribute; all other player settings remain unchanged.
- Refresh the reader view. In the browser tools, select the corresponding iframe and compare the stored title with the clip content. Some embedding blocks only create the frame after clicking on the preview; check the frame accordingly after the page has loaded.
- Check with a screen reader whether you can distinguish the two videos. Additionally, test with the keyboard to ensure you can navigate into and out of the interactive elements and back to the surrounding page.
If your editor discards the title when saving, it's still helpful to retain a visible header for context. Reach out to the embed block provider regarding the missing frame label or use a block that generates one. A well-chosen frame label enhances navigation; separately verify that Play, subtitles, and fullscreen functions are clear and easy to use.