How to insert a caption using bootstrap?

How to insert a caption using bootstrap?
0

#1

Hi everyone reading this. I am trying to insert a caption using bootstrap for my tribute page. I appreciate any help on how to to do this.


#2

Do you have a codepen link?


#3

#4
<img src="http://image.24h.com.vn/upload/4-2017/images/2017-11-07/1510019620-610-james-rodriguez-real-madrid-barcelona-transfers-876338-660.jpg" class="small-image">
Playing in the champions league with Bayern Munich vs Paris Saint</img> 

The <img> element is self-closing. It has no closing </img> tag.

If you want captions for the image, you may want to use the <figure> and <figcaption> elements:

<figure>
  <img src="..." alt="...">
  <figcaption>
    <p>Playing in the champions league with Bayern Munich vs Paris Saint</p>
  </figcaption>
</figure>

You might also want to check out Bootstrap 4’s documentation for figures.


#5

Thank you! I appreciate your help. I will give it a read.