Comments on: HTML5 Simplequiz #4: figures, captions and alt text https://stevefaulkner.github.io/html5doctored/html5-simplequiz-4-figures-captions-and-alt-text/ helping you implement HTML5 today Thu, 28 Jul 2016 17:36:34 +0000 hourly 1 By: Killavus https://stevefaulkner.github.io/html5doctored/html5-simplequiz-4-figures-captions-and-alt-text/#comment-15976 Sat, 09 Jul 2011 13:18:00 +0000 http://html5doctor.com/?p=2694#comment-15976 A is definitely my choose.

It’s perfectly correct alt attribute — describes an image content (when it’s significant) to people, who can’t view this image (page didn’t loaded, or an user is disabled).

Yours
Martin

]]>
By: Alohci https://stevefaulkner.github.io/html5doctored/html5-simplequiz-4-figures-captions-and-alt-text/#comment-13022 Tue, 21 Dec 2010 12:20:54 +0000 http://html5doctor.com/?p=2694#comment-13022 @Steve Faulkner – Excellent. I wasn’t aware of your alternative draft. The mappings in that look much saner.

]]>
By: Alohci https://stevefaulkner.github.io/html5doctored/html5-simplequiz-4-figures-captions-and-alt-text/#comment-13020 Tue, 21 Dec 2010 11:33:35 +0000 http://html5doctor.com/?p=2694#comment-13020 @Bartek. The ARIA mappings in HTML5 are frankly a mess right now. According to the draft, <img src=”example,com/usflag.img” > has default role “img” but <img src=”example,com/usflag.img” alt=”English” > does not.

The figure rule from Henri’s table does not appear to match up with the current draft. Indeed the example at the very bottom of this page: http://dev.w3.org/html5/spec/content-models.html#annotations-for-assistive-technology-products-aria, uses role=”img” on the figure element and fails validation in validation.nu/W3C HTML Validator for that very reason.

]]>
By: steve faulkner https://stevefaulkner.github.io/html5doctored/html5-simplequiz-4-figures-captions-and-alt-text/#comment-13019 Tue, 21 Dec 2010 10:38:28 +0000 http://html5doctor.com/?p=2694#comment-13019 this table is a very early suggested mapping draft, some of the
mappings are agreed upon, but others are not. In the latest version(s) [1] of the mappings,figure has no default role (and no restrictions on roles that are conforming).
One of the reasons for this is that figure can contain any content not just images, so having a default role of img would not be appropriate.

[1] there are currently 2 versions of the conformance rules for ARIA in
HTML5, both are under active discussion:
the one in the spec:
spec draft and this one:
alternative draft

Neither are considered definitive at this stage as the W3C HTML working group has not reached agreement.

but where they are the same, as in the case of figure, it is unlikely that the mapping will change.

In other cases where default roles are defined for an element it is true that you should not need to add an ARIA role, sometimes though in the case of newer HTML5 elements, the use of ARIA may be warranted to
fill gaps in native implementations.

Example:

You can use role="navigation" to expose the info to assistive tech that support ARIA landmarks.
This should not be necessary when browsers implement <nav> accessibility support.

< nav role=”navigation”>

The other case where use of a default role on an element is useful is if the role has a property in ARIA (but not in HTML) that you want to use

Example:

In order to use the on a button element you need to use role=”button”

< button aria-pressed=”true | false” role=”button”>button text< /button>

Note: global ARIA attributes can be used on most HTML element and do not require an explicit ARIA role.

]]>
By: Bartek https://stevefaulkner.github.io/html5doctored/html5-simplequiz-4-figures-captions-and-alt-text/#comment-13018 Tue, 21 Dec 2010 10:16:28 +0000 http://html5doctor.com/?p=2694#comment-13018 Here’s my question we discussed with Bruce and Steve Faulkner (who should post his reply here soon).

In the comments Bruce said that answer B is the right one, at least for now, which I agree with.
I used this solution in my current project, but was surprised when I saw validation errors: „Attribute role not allowed on element figure at this point”.
According to this table „img” is an implicit role of the figure element.
So my question is: do we need and should we use role=”img” on figure, if it’s implicit and appears to be invalid?
Thanks!

]]>
By: Jordan https://stevefaulkner.github.io/html5doctored/html5-simplequiz-4-figures-captions-and-alt-text/#comment-12730 Wed, 15 Dec 2010 17:35:36 +0000 http://html5doctor.com/?p=2694#comment-12730 Another vote for A. On occasions when I’ve browsed with images disabled (e.g. on the bus with patchy mobile reception), I always preferred fuller descriptions for missing images; and when asked, screenreader users tend to prefer more information to less.

]]>
By: Dan https://stevefaulkner.github.io/html5doctored/html5-simplequiz-4-figures-captions-and-alt-text/#comment-12061 Mon, 15 Nov 2010 15:17:14 +0000 http://html5doctor.com/?p=2694#comment-12061 All the captions are incorrect, as it should identify Brett Favre and Laura Bush and explain exactly what sort of dirt the portly Lidl manager has on them to force their appearance at a store opening in the UK.

]]>
By: VeeBoi https://stevefaulkner.github.io/html5doctored/html5-simplequiz-4-figures-captions-and-alt-text/#comment-12059 Mon, 15 Nov 2010 08:46:52 +0000 http://html5doctor.com/?p=2694#comment-12059 wait I’ll change my answer to “E” because “alt” property and <figcaption> has different function…. so I’ll choose “E”.. I hope I’m correct

]]>
By: VeeBoi https://stevefaulkner.github.io/html5doctored/html5-simplequiz-4-figures-captions-and-alt-text/#comment-12058 Mon, 15 Nov 2010 08:42:30 +0000 http://html5doctor.com/?p=2694#comment-12058 I forgot to use the < and > for brackets… anyway you know what I mean.

]]>
By: VeeBoi https://stevefaulkner.github.io/html5doctored/html5-simplequiz-4-figures-captions-and-alt-text/#comment-12056 Mon, 15 Nov 2010 08:39:42 +0000 http://html5doctor.com/?p=2694#comment-12056 I choose “C”… first I thought the right answer is “E”, but coding wise “E” becomes redundant using the
“” and the “alt” property of “” ….. so I’ll go with “C”..

]]>