figure code html code example
Example 1: 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>
Example 2: html
<figure>
<img src="/media/examples/elephant-660-480.jpg"
alt="Elephant at sunset">
<figcaption>An elephant at sunset</figcaption>
</figure>