HTML

Figure and Figcaption

The <figure> element is used to group visual content, such as an image, with its caption. The <figcaption> element defines the caption.

<figure>
    <img src="image.jpg" alt="Web Development">
    <figcaption>Web Development Workspace</figcaption>
</figure>
Interactive Sandbox
HTML/CSS/JS