Informative Image: Figure element

Code
Overview
-
Use of the
figure
andfigcapture
elements to provide a caption for the image. -
Uses
aria-labelledby
reference to thefigcaption
element to define the accessible name of the image. - This technique ties the accessible name to the visible text on the screen for a more reliable accessible name for the image.