WebAIM - Web Accessibility In Mind

E-mail List Archives

Re: iframes and alt attribute

for

From: Jonathan Avila
Date: Mar 16, 2016 1:09PM


> You can use either. Both alt and title attributes can be used to give the frame an accessible name, which is the goal in this instance. The title attribute is more commonly used with frames though.

To my knowledge the alt attribute is not valid on an iframe. Alt is not a global attribute unlike the title attribute and other aria attributes. Perhaps this has changed or perhaps if the iframe was only an image resource had a role of img I could see this but otherwise this seems non-standard.

Jonathan

-----Original Message-----
From: WebAIM-Forum [mailto: <EMAIL REMOVED> ] On Behalf Of Léonie Watson
Sent: Wednesday, March 16, 2016 2:55 PM
To: 'WebAIM Discussion List'
Subject: Re: [WebAIM] iframes and alt attribute

> From: WebAIM-Forum On Behalf Of Dona Patrick
> Sent: 16 March 2016 18:36
> Some folks are insisting that the alt attribute is included with every iframe.
> I've only ever heard that the title attribute is required.

You can use either. Both alt and title attributes can be used to give the frame an accessible name, which is the goal in this instance. The title attribute is more commonly used with frames though.

Léonie.

--
@LeonieWatson tink.uk Carpe diem.