html use figure tag 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>