Captions can be easily added to each slide item by inserting a div
element with the .carousel-caption
class. This element will hold two different elements: a heading
and paragraph
element. You have the liberty to use either one of them or both. Take the following code as an example:
<div class="item"> <img src="images/book1.jpg" alt="Book 1"> <div class="carousel-caption"> <h3>This is the first slideshow</h3> <p>Lorem ipsum donor.</p> </div> </div>