Informative Image: Figure element
Code
Overview
-
Use of the
figureandfigcaptureelements to provide a caption for the image. -
Uses
aria-labelledbyreference to thefigcaptionelement 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.