How to write caption below image using HTML?

How to write caption below image using HTML?
0

#1

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.


#2

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.


#3

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.
http://www.w3schools.com/tags/tag_figcaption.asp


#4

How about Bootstrap thumbnails?
http://getbootstrap.com/components/#thumbnails-custom-content