Quick Answer
Use figure for a self-contained image, diagram, example or other content treated as a unit. Add figcaption when a visible caption gives useful context, a label or attribution. In Divi 5, verify the actual parent-child markup after choosing HTML wrappers. A caption and an image’s text alternative serve related purposes, so decide what each needs to communicate in the page’s context.
A tutorial screenshot may need a caption explaining which setting changed. A decorative background usually has a different purpose. The choice begins with what the reader needs from the visual.
Choose a self-contained unit
MDN’s figure reference describes self-contained content, optionally with a caption, referenced as a single unit. That can include a diagram or code example as well as an image.
For an illustrative project-planning diagram, the figure might contain the graphic and a caption identifying the phase shown. The surrounding article can refer to that unit without depending on its exact visual position.
Do not wrap every image automatically. Review whether it is explanatory content, a navigation control, an identity mark or decoration. The correct treatment follows its actual purpose.
Write a caption that adds context
A caption can identify the subject, date, source or limitation that readers need to interpret the visual. For a software screenshot, identify the relevant version or state when that changes the meaning.
Keep credit and permission records accurate. Naming a photographer in a caption does not establish that the site has permission to use the photograph. A publisher tutorial image likewise remains a publisher example, rather than becoming an Interactive Online client result.
The caption can contain the relevant context and attribution together. Keep longer analysis in the surrounding article so the figure remains easy to read.
Build the relationship in Divi
The first-party Divi tutorial documents figure and figcaption choices in the HTML Element Type controls. Use a suitable parent container for the figure and the intended caption element within it.
MDN’s figcaption reference specifies the caption as the first or last child of its parent figure. Inspect the rendered output because additional module wrappers can change the relationship.
A text module styled to resemble a caption may still be outside the figure in the document. Conversely, changing a wrapper label without checking its contents can produce unsuitable nesting. Review the structure as well as the visual alignment.
Review the caption and text alternative together
W3C’s informative image guidance explains that the text alternative should convey the image’s meaning in context. That decision depends on why the image is present.
A caption may identify a chart’s date and source while the image needs a concise alternative and a nearby detailed explanation of the data. A screenshot caption may explain a workflow step while its alternative identifies the setting needed to follow that step.
Avoid duplicating a long paragraph mechanically in the caption, alt text and nearby prose. Check that a reader who cannot see the image still receives the necessary information, without having to hear the same explanation repeatedly.
Check the figure on narrow layouts
Keep the visual and caption together when the layout changes. Verify readable caption text, usable source links and an image that remains understandable at its displayed size. A dense screenshot may need a larger detail view or a written explanation of the relevant control.
The website image size guide explains how rendered size, aspect ratio and responsive sources affect delivery. Caption markup does not determine which image file the browser downloads.
Key Takeaways
- Choose figure for content treated as a self-contained unit.
- Use a caption for context, identification or accurate attribution.
- Verify that figcaption is actually inside its figure.
- Review the image alternative and surrounding explanation together.
Frequently Asked Questions
Does every image need a figure and caption?
No. Decide from its role in the content. Decorative and functional images need treatment appropriate to their purpose.
Can a caption replace every alt-text decision?
No. Review the meaning available from the caption, the visual and surrounding text together, then choose an appropriate text alternative.
Can the caption sit anywhere in the layout?
Its visual position can be styled, but the semantic figcaption needs the correct relationship as the first or last child of its figure. Inspect the generated document.
Include important diagrams and tutorial captures in a scoped accessibility review so their meaning remains available across layouts and input methods.

