short note on figure and figcaption

Categories

HTML Accessibility

short note on figure and figcaption

In 2011 when I first started thinking about how best to map the semantics of figure/figcaption to accessibility API properties, the set of properties to choose from was limited as compared to 2022.

What ended up being implemented in browsers was a naming relationship between the figure element and the figcaption element. The accessible name for the figure element is provided by the content of the figcaption element.

Code example

Using ARIA to illustrate the information exposed natively in the Accessibility Tree for the labelledby figure/figcaption accessibility mapping.

<figure role=”figure” aria-labelledby=”figcaption”>
<img src=”exercise.jpg” alt=”Watching Jonny James
presenting, while riding an exercise bike”>
<figcaption role=”caption” id=”figcaption”>
The Lasertour Perceptronics allows you to
exercise your mind while working your body
</figcaption>
</figure>

Typical expected Aural output

figure The Lasertour Perceptronics allows
you to exercise your mind
while working your body.
graphic Watching Jonny James presenting
while riding an exercise bike.
caption
The Lasertour Perceptronics allows you to
exercise your mind
while working your body.
out of figure

The figure and [...]

Read article at html5accessibility.com

Article Taxonomies

Categories:
Fatal error: Uncaught Error: Object of class WP_Error could not be converted to string in /home/webable/www/www/wp-content/themes/webable/content-mcm.php:65 Stack trace: #0 /home/webable/www/www/wp-includes/template.php(812): require() #1 /home/webable/www/www/wp-includes/template.php(745): load_template('/home/webable/w...', false, Array) #2 /home/webable/www/www/wp-includes/general-template.php(206): locate_template(Array, true, false, Array) #3 /home/webable/www/www/wp-content/themes/webable/single-mcm_article.php(15): get_template_part('content-mcm') #4 /home/webable/www/www/wp-includes/template-loader.php(106): include('/home/webable/w...') #5 /home/webable/www/www/wp-blog-header.php(19): require_once('/home/webable/w...') #6 /home/webable/www/www/index.php(17): require('/home/webable/w...') #7 {main} thrown in /home/webable/www/www/wp-content/themes/webable/content-mcm.php on line 65