Purpose:
Encapsulates media content (images, videos) with captions.

Use Cases:

  • Images with descriptive captions.
  • Charts and diagrams with explanatory text.

Accessibility:

  • Provides better context for screen readers.

  • Pair with <figcaption> to describe the media.

<figure>  
  <img src="sunset.jpg" alt="Sunset over the mountains" />  
  <figcaption>A breathtaking sunset in the Alps.</figcaption>  
</figure>