use of figure tag in html code example
Example: html figure
<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>