Cesar Delos Reyes
last year
Cesarcountry asked

What does self-contained content mean in HTML?

Abhay Jajodia
Expert
last year
Abhay Jajodia answered

Hi Cesar,

Self-contained content means a piece of content that can stand on its own as one complete unit.

In HTML, <figure> is used for things like an image, diagram, or code snippet plus its caption, because they belong together.

Example:

<figure>
  <img src="tiger.png" alt="Tiger">
  <figcaption>A tiger</figcaption>
</figure>

If you have more questions, I am here to help 😊

HTML
This question was asked as part of the Learn HTML course.