Embed images with caption in markdown

How to embed an image with a caption in markdown/html

I wanted to embed images in markdown with a caption the other day and discovered that there's a <figcaption> tag in html You'd use it this way:

<figure> <img src="https://i.imgur.com/Xm1A7wt.jpg" alt="Heavenly image" /> <figcaption align="center"> <b> your caption here </b> </figcaption> </figure>

Thursday, 30/01/2025, 11:41 in the morning.
© Dhruv · 2025