Bootstrap panel-title class



Add panel title in Bootstrap to add a title to the panel using the .panel-title class.

You can try to run the following code to implement the .panel-title class

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 = "panel panel-default">
         <div class = "panel-heading">
            <h3 class = "panel-title">
               Panel with title
            </h3>
         </div>
         <div class = "panel-body">
            Panel content
         </div>
      </div>
   </body>
</html>
Updated on: 2020-06-12T20:39:23+05:30

621 Views

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements