fuigure html code example
Example 1: how to use figure and caption in html
<figure>
<img
src="https://developer.mozilla.org/static/img/favicon144.png"
alt="The beautiful MDN logo.">
</figure>
<figure>
<img
src="https://developer.mozilla.org/static/img/favicon144.png"
alt="The beautiful MDN logo.">
<figcaption>MDN Logo</figcaption>
</figure>
Example 2: html figure
<figure>
<img src="image-url.com or local-filename.jpg" width="auto" height="auto" alt="figure alt text">
<figcaption>
Figure caption
</figcaption>
</figure>