The figure and caption below use pure browser default styling. No CSS has been applied to them. Notice how the browser indents the figure and groups the image with its caption.

Oil study of fishing boats in a harbor at dawn
Harbor Study No. 3 - Oil on panel, 30 x 40 cm, 2025

The browser adds left and right margins to <figure> by default, visually indenting it. The <figcaption> is semantically linked to the image even without any CSS.