Bootstrap panel-heading class


Use the .panel-heading class to add a panel to headings in Bootstrap.

You can try to run the following code to implement a panel-heading 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">
            Panel Heading
         </div>
         <div class = "panel-body">
            Demo content
         </div>
      </div>
      <div class = "panel panel-default">
         <div class = "panel-heading">
            <h3 class = "panel-title">
               Panel Heading
            </h3>
         </div>
         <div class = "panel-body">
            Demo content
         </div>
      </div>
   </body>
</html>

karthikeya Boyini
karthikeya Boyini

I love programming (: That's all I know

Updated on: 12-Jun-2020

324 Views

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements