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


A network diagram
Diagram showing network connections.

<img src="../../../assets/images/diagram.png" width="500" alt="A network diagram" />
<figcaption>
Diagram showing network connections.</figcaption>

Note: Impossible 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.