Figure element in html

Hello guys,
" The figure element represents self-contained content", what is the meaning of this sentence ?

Hi @Prabhand !

Self contained means that this element is complete on its own.

For example, take a look at the sample code from MDN docs

<figure>
    <img src="/media/cc0-images/elephant-660-480.jpg"
         alt="Elephant at sunset">
    <figcaption>An elephant at sunset</figcaption>
</figure>

This is stand alone content that is a complete unit.

Hope that makes sense :+1:

Thank you for the explanation

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.