Search topics
Iframes with a missing or generic title
A studio's contact page embeds an untitled map and a video titled only "Video player", so a screen reader announces two frames but not what they hold.
<iframe src="https://maps.example.com/embed?pb=…"> The problem
Screen reader users can't tell what an embedded map, video or widget holds without going into it, and keyboard users can't reach the controls inside a frame Tab skips
A pottery studio's "Visit us" page has two embeds. Under "Find us" is a map, pasted in from a map provider's share menu. Under "Take the tour" is a two-minute video, pasted from a video host. A screen reader user who wants directions moves through the page's frames, with the frame key or the screen reader's list of frames, and hears "frame" and then "Video player, frame". Depending on the screen reader, the first may instead read the long address the map loads from. Neither says which one is the map, so they enter each to find out, or give up and look for the address elsewhere.
A second version of the page gets the names right, but someone found that Tab stopped on every one of the map's controls, and added tabindex="-1" to the map's frame to take it out of the Tab order. Now a keyboard user who presses Tab goes from the top of the page straight to the video's Play button. The map's Zoom in and Zoom out buttons and its "View larger map" link are never reached, though a mouse still clicks them.
An iframe puts another document inside the page, and assistive technology announces it as a frame with a name. 4.1.2 needs every user interface component to have a name that can be determined in code, and a frame is one. The map's iframe has no title, so it has no name at all. The video's frame has title="Video player", which the host's embed code supplies on every video it serves. That is a name, but it describes the player, not the video, and WCAG technique H64, which names frames with title, checks that the title "describes the iframe's content". A second video on the page would get the same name, and the two could not be told apart.
2.1.1 needs everything on the page to work from a keyboard, and the map's buttons and link are part of the page. tabindex="-1" takes an element out of the order Tab follows, and on a frame it takes what is inside the frame out with it: in Chromium, Firefox and WebKit (tested November 2026), Tab moves from the control before the frame to the one after it. Nothing inside can be reached by keyboard, so the map's controls fail even though each of them is a real, focusable button or link.
Sighted visitors using a mouse see a map and a video and notice nothing wrong. The failure is in the names the code gives the two frames, and in the Tab order, which only a keyboard shows.
3 of 10 groups affected
- No vision (affected)
- Low vision (affected)
- Colour vision (not affected)
- No hearing (not affected)
- Hard of hearing (not affected)
- No speech (not affected)
- Motor (affected)
- Reach, strength (not affected)
- Cognitive (not affected)
- Seizures (not affected)
- Without vision Screen reader users hear "frame" and "Video player" and can't tell the map from the video, or either from an advert, without going into each one. Many skip frames they can't identify, and miss the directions.
- Limited manipulation Keyboard and switch users press Tab past a frame with tabindex="-1" and never reach the map's zoom buttons or its larger map link, so for them the map is only a picture.
- Limited vision People who use a screen reader with magnification often move by frames rather than pan across the page, and the names give them nothing to tell the frames apart.
axe's frame-title and ANDI flag the map, because its frame has no name. Both accept "Video player", because any non-empty title counts, and axe's frame-title-unique only catches two frames sharing one title. Scanners also check the page as it first loads, so a chat or booking widget that inserts its frame after a cookie choice or a click is often never tested. When asked to fix the warning, an AI assistant tends to write title="iframe", title="Embedded content" or the provider's name, which says nothing about the content, or adds aria-hidden="true" to the frame. That silences the scanner and hides the map from screen readers, while its links stay in the Tab order, announced as nothing. Whether a name says what the frame holds is something a person has to judge. axe's frame-focusable-content does catch tabindex="-1" on a frame, but only when it finds something focusable inside the frame at the moment it checks; a frame whose content loads later, after a click or a cookie choice, can pass.
What the checkers report
- axe DevTools
- Frames with focusable content must not have tabindex=-1
- Frames must have a unique title attribute
- Frames must have an accessible name
- Lighthouse
<frame>or<iframe>elements do not have a title
Try it
Find the map by what a screen reader says, then reach its Zoom in button with Tab
Broken 1: under the page is what a screen reader says as it moves from frame to frame. Choose a line to jump to that frame. Can you tell which one is the map before you choose?
Broken 2: this time the names are right. Press Tab to move into the page: focus goes to the video's Play button and never reaches the map's Zoom in button.
Apply the fix. The names say what each frame holds, and Tab goes into the map, through Zoom in, Zoom out and View larger map, then on to the video.
Broken Can you fix this?
Visit us
Find us
4 Mill Lane. Open Tuesday to Sunday, 10:00 to 18:00.
Take the tour
Two minutes around the wheels and kilns.
Moving frame by frame, a screen reader says:
The fix
Name each frame for what it holds, and let Tab into it
A map with no title, and a video titled by its host
<h2>Find us</h2><p>4 Mill Lane. Open Tuesday to Sunday, 10:00 to 18:00.</p><iframe src="https://maps.example.com/embed?pb=!1m18!1m12…" width="600" height="320" style="border:0" loading="lazy"></iframe> <h2>Take the tour</h2><iframe src="https://video.example.com/embed/x7Kq2" width="560" height="315" title="Video player" allowfullscreen></iframe>What is wrong3 points
- A screen reader announces the map only as "frame". Its frame has no
title, so it has no name. - The video is announced as "Video player", which doesn't say which video it is. That name is the host's default: it describes the player, not the video.
- So neither tells a screen reader user what the frame holds.
<h2>Find us</h2><p>4 Mill Lane. Open Tuesday to Sunday, 10:00 to 18:00.</p><iframe src="https://maps.example.com/embed?pb=!1m18!1m12…" title="Map of Kiln Room, 4 Mill Lane" width="600" height="320" style="border:0" loading="lazy"></iframe> <h2>Take the tour</h2><iframe src="https://video.example.com/embed/x7Kq2" title="Studio tour video" width="560" height="315" allowfullscreen></iframe>How it is fixed3 steps
- Give the map's frame a
titlethat says what is in it: "Map of Kiln Room, 4 Mill Lane". - Replace the video's default title with one that says which video it is, "Studio tour video", rather than keeping it beside the new one.
- Leave
tabindexoff both frames. Tab then goes into the map, reaches its buttons and its link, and comes out to the video.
The screen reader now reads "Map of Kiln Room, 4 Mill Lane, frame" and "Studio tour video, frame", so someone who wants directions knows which one to enter, and a keyboard reaches every control in both frames. This fixes both Befores and passes 4.1.2 and 2.1.1. title is the HTML attribute for naming a frame, and browsers and screen readers have read it on frames for longer than any ARIA attribute.
Why this fix: Use native HTML first
const booking = document.getElementById('booking');const nameFrames = () => { for (const frame of booking.querySelectorAll('iframe')) { if (frame.title !== 'Booking calendar') frame.title = 'Booking calendar'; }};nameFrames();new MutationObserver(nameFrames).observe(booking, { childList: true, subtree: true });A chat, booking, payment or review widget usually inserts its iframe with a script, so there is no markup of yours to add the title to. The iframe element is still part of your page, even though what loads inside it comes from the vendor's domain, so it can still be named. Take the first of these that works.
Use the widget's own setting. Many SDKs accept a title, a label or an accessibility option when they are set up, or copy the title from the container you give them. The option's name varies, so check the vendor's documentation. A setting is the only fix that survives the vendor's updates. A CMS or shop plugin that prints the iframe in its template is the same case: look for a setting, then for a template override or filter hook the platform offers. Either outlasts a plugin update, which editing the plugin's own files does not.
If there is no setting, set the title from your own script: in the SDK's ready or load callback if it has one, or by watching the widget's container. Many widgets replace their frame when they open, close or move to the next step, so keep naming it rather than doing it once.
Watch the widget's own container, not the whole document. The observer reacts to frames being added, not to attributes, so setting the title does not set it off again. If the widget adds more than one frame, pick out the one people use rather than giving them all the same name. This lasts only while the vendor's markup stays as it is, and does nothing if your script fails to load, so treat it as a stopgap: report the missing name to the vendor, and check the page again after each of its updates.
SDKs often add small helper frames as well, for messaging or fraud checks, that show nothing. One hidden with display: none needs nothing. One left in the page at a pixel or two still reaches screen readers, so name it for what it does, such as "Payment security check", and ask the vendor to hide it. A frame inside a closed shadow root can't be reached by any script on your page, and only the vendor can fix it.
When a widget can't be fixed, the failure is still on your page. WCAG allows a statement of partial conformance for third-party content you don't control, but that explains the gap rather than closing it. Name the widget in your accessibility statement, give another way to do the task, such as an email address for bookings, and weigh it when you choose or renew the vendor.
aria-label or aria-labelledby on an iframe also gives it a name, and either overrides title. Neither adds anything here, and a frame with both a title and an aria-label has two names that can drift apart, so set title alone.
Where the frame's markup comes from decides where its title is set.
- Frames in your own templates: set
titlein the markup, and make an embed component require it as a prop rather than default to "Embedded content". - Frames content editors paste: give the embed block a required title field, and check the published page, because some editors strip attributes from pasted code or keep the host's default.
- Frames a third-party widget, plugin or SDK inserts: there is no markup of yours to edit, so use the widget's setting, or set the title from a script, as described above.
Write the name in the page's language. Hosts often supply an English default, which a screen reader set to Japanese reads with the wrong pronunciation. Keep the name short and specific: "Studio tour video", not "Video of a two-minute tour of our pottery studio filmed in spring". The frame's role is announced with it, so the name needs neither "frame" nor "iframe".
A frame that is hidden with display: none, visibility: hidden or the hidden attribute, such as a tracking frame, is not exposed and needs no name. Don't hide a visible frame with aria-hidden to quiet a warning: anything focusable inside it still takes focus, with nothing announced.
When a map's controls make the Tab order long, keep them in it rather than taking the frame out. Put the address and opening hours in text before the map, as the example does, so people who only need the address have it without entering the frame. A frame with nothing to operate inside needs no tabindex at all.
When the framed document is your own, give it a <title> as well, matching the frame's name. Some screen readers read that document title on entering the frame, and it is the page's title if someone opens the frame on its own.
Verify the fix
4 checks, no mouse.
Test with: Screen reader, Keyboard
Record the OS, browser and assistive-technology versions, the build, the date, and the actual result of each step. Repeat whenever an embed is added or a third-party script changes.
Limits
This is a starting pattern, not a guarantee for every application. The addresses, IDs and names in the snippets are placeholders. Screen readers announce frames differently: some read the frame's name on reaching it, some read the framed document's title instead, and some read neither until you enter, so listen for the names rather than the exact phrasing. This guide covers naming frames, not whether what is inside them is accessible, such as a video's captions; for an embedded map whose places are written nowhere else on the page, see maps that are the only way to find a location. Test the complete journey with your target assistive technology.
This is a recreated teaching example, not a finding about a named client. The code is a starting pattern: test it in your own product. No completed assistive-technology test is claimed here.
References
- WCAG Understanding: name-role-value (opens in a new tab)
- WCAG Technique H64 (opens in a new tab)
- developer.mozilla.org: iframe (opens in a new tab)
- dequeuniversity.com: frame-title (opens in a new tab)
- dequeuniversity.com: frame-title-unique (opens in a new tab)
- WCAG Understanding: keyboard (opens in a new tab)
- dequeuniversity.com: frame-focusable-content (opens in a new tab)
- w3.org: WCAG22 (opens in a new tab)
EaseWeb service
Fixed it? Keep it from coming back.
I turn guides like this one into rules your coding agents follow and checks your CI runs. Then I retest by hand with a keyboard and screen readers, periodically.