Ronalds Vilciņš

Iframe accessibility

For iframes that have meaningful content, provide a title using the title attribute.

<iframe title="Cat dancing video" src="catdancingvideo.html"></iframe>

For iframes that contain non-readable content, provide a title to pass automated tests, but be sure to hide the content altogether from screen reader users using aria-hidden="true".

<iframe title="Non-readable content" src="" aria-hidden="true"></iframe>

This site is ad-free and doesn’t use trackers. If you’d like to support my writing, I’d love if you could buy me a coffee.