Figure and caption (figure-figcaption)
Ensure captioned images and diagrams are marked up with a
<figure> element containing a
<figcaption>.
figcaption without figure:
In this example
<figcaption> is used without a
<figure> element
Diagram showing network connections.
The (DOM/programmatic) structure of the example image & figcaption above
looks like this:
<img src="../../assets/diagram.png" width="500" alt="A network
diagram" />
<figcaption>Diagram showing network connections.</figcaption>
Note: Hard to automatically test or detect. Requires a human tester or AI
to determine (e.g. from surrounding context) if a
figure element is necessary, and then verify
if one exists in association with an image element.