Figure and caption (figure-figcaption)

Ensure captioned images and diagrams are marked up with a <figure> element containing a <figcaption>.


Multiple figcaptions in one figure:

In this example the <figure> element contains two <figcaption> elements.


Diagram showing network connections.
A network diagram
Credit: Example Corp.

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

Note: Possible to automatically test/detect. For each <figure>, verify it contains no more than one <figcaption> element.

axe detected: none  |  QualWeb detected: none