How to write caption below image using HTML?

How to write caption below image using HTML?


I am doing first project of fcc(“building tribute page”).I am wondering whether there is special HTML element or special bootstrp class for writing caption below image or i simply write a text b/w any block element like h2 or p and give it bootstrap class text-center.


You could look into the figure element.

Figure Element on MDN

I am currently using that with figcaption for a piece of lightbox functionality that supports image captions with the title attribute.


There is a tag in HTML to write caption below HTML and is used with firgure tag. You can see detail in W3school. This is a good website to look for reference all html tags.


How about Bootstrap thumbnails?