Check out example codes for "html figure". It will help you in understanding the concepts better.
Code Example 1
<figure>
<img src="image-url.com or local-filename.jpg" width="auto" height="auto" alt="figure alt text">
<figcaption>
Figure caption <!-- can also use <div>, <p>, etc. tags within <figcaption> -->
</figcaption>
</figure>
Code Example 2
<!-- Just an image -->
<figure>
<img
src="https://developer.mozilla.org/static/img/favicon144.png"
alt="The beautiful MDN logo.">
</figure>
<!-- Image with a caption -->
<figure>
<img
src="https://developer.mozilla.org/static/img/favicon144.png"
alt="The beautiful MDN logo.">
<figcaption>MDN Logo</figcaption>
</figure>
Code Example 3
<figure>
<img src="/media/examples/elephant-660-480.jpg"
alt="Elephant at sunset">
<figcaption>An elephant at sunset</figcaption>
</figure>
Learn ReactJs, React Native from akashmittal.com