E-mail List Archives
Thread: iframes and alt attribute
Number of posts in this thread: 7 (In chronological order)
From: Dona Patrick
Date: Wed, Mar 16 2016 12:35PM
Subject: iframes and alt attribute
No previous message | Next message →
Good afternoon,
We are having a discussion at work about using alt attributes in iframes
(embedded videos) (in HTML5 pages).
Some folks are insisting that the alt attribute is included with every
iframe. I've only ever heard that the title attribute is required.
The reason this is an issue is because the CMS makes it difficult to add
the alt attribute, whereas the title attribute is automatically added.
So the question is this: is the alt attribute required for iframes?
Apologies if this has already been discussed. I did not search the archives.
Thanks,
Dona
From: Léonie Watson
Date: Wed, Mar 16 2016 12:55PM
Subject: Re: iframes and alt attribute
← Previous message | Next message →
> 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.
From: Jonathan Avila
Date: Wed, Mar 16 2016 1:09PM
Subject: Re: iframes and alt attribute
← Previous message | Next message →
> 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
From: Léonie Watson
Date: Wed, Mar 16 2016 1:26PM
Subject: Re: iframes and alt attribute
← Previous message | Next message →
> From: Jonathan Avila [mailto: = EMAIL ADDRESS REMOVED = ]
> Sent: 16 March 2016 19:10
>
> > 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.
You're right! It isn't a global attribute. I must admit I didn't check the spec, just threw a quick test together - where oddly the alt attribute seems to do the job in FF, Chrome and IE.
Léonie.
--
@LeonieWatson tink.uk Carpe diem.
From: Katie Haritos-Shea GMAIL
Date: Wed, Mar 16 2016 1:27PM
Subject: Re: iframes and alt attribute
← Previous message | Next message →
Dona,
Only a title is needed, additional markup including aria could be added, but a title is the must here.....
* katie *
Katie Haritos-Shea
Senior Accessibility SME (WCAG/Section 508/ADA/AODA)
Cell: 703-371-5545 | = EMAIL ADDRESS REMOVED = | Oakton, VA | LinkedIn Profile | Office: 703-371-5545
From: Dona Patrick
Date: Sat, Mar 19 2016 11:01AM
Subject: Re: iframes and alt attribute
← Previous message | Next message →
Thanks to everyone who answered my question. It was very helpful.
Dona
On Mar 16, 2016 3:28 PM, "Katie Haritos-Shea GMAIL" < = EMAIL ADDRESS REMOVED = >
wrote:
> Dona,
>
> Only a title is needed, additional markup including aria could be added,
> but a title is the must here.....
>
>
>
> * katie *
>
> Katie Haritos-Shea
> Senior Accessibility SME (WCAG/Section 508/ADA/AODA)
>
> Cell: 703-371-5545 | = EMAIL ADDRESS REMOVED = | Oakton, VA | LinkedIn Profile |
> Office: 703-371-5545
>
>
>
From: Birkir R. Gunnarsson
Date: Sun, Mar 20 2016 10:57AM
Subject: Re: iframes and alt attribute
← Previous message | No next message
Oddly enough, Jaws with FF takes the accessible name of an iframe from
the title element inside it rather then the title attribute on the
iframe tag.
I guess it can be justified by the accessible name calculation
algorithm which checks for accessible name from content before it
checks for the title attribute.
On 3/19/16, Dona Patrick < = EMAIL ADDRESS REMOVED = > wrote:
> Thanks to everyone who answered my question. It was very helpful.
>
> Dona
> On Mar 16, 2016 3:28 PM, "Katie Haritos-Shea GMAIL" < = EMAIL ADDRESS REMOVED = >
> wrote:
>
>> Dona,
>>
>> Only a title is needed, additional markup including aria could be added,
>> but a title is the must here.....
>>
>>
>>
>> * katie *
>>
>> Katie Haritos-Shea
>> Senior Accessibility SME (WCAG/Section 508/ADA/AODA)
>>
>> Cell: 703-371-5545 | = EMAIL ADDRESS REMOVED = | Oakton, VA | LinkedIn Profile |
>> Office: 703-371-5545
>>
>>
>>