Syntax error Add HTML headings into Bootstrap thumbnails

Add HTML headings into Bootstrap thumbnails



With Bootstrap, you can easily add heading to thumbnails.

You can try to run the following code to add HTML headings −

Example

Live Demo

<!DOCTYPE html>
<html>
   <head>
      <title>Bootstrap Example</title>
      <link href = "/bootstrap/css/bootstrap.min.css" rel = "stylesheet">
      <script src = "/scripts/jquery.min.js"></script>
      <script src = "/bootstrap/js/bootstrap.min.js"></script>
   </head>
   <body>
      <div class = "row">
         <div class = "col-sm-6 col-md-3">
            <div class = "thumbnail">
               <img src = "/bootstrap/images/kittens.jpg" alt = "Kittens">
            </div>
            <div class = "caption">
               <h3>Thumbnail Heading</h3>
            </div>
         </div>
      </div>
   </body>
</html>
Updated on: 2020-06-12T18:21:18+05:30

286 Views

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements