Bootstrap Collapsible panel

To create a collapsible panel in Bootstrap, use the panel-collapse class.

You can try to run the following code to create a collapsible panel


Live Demo

<!DOCTYPE html>
      <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>
      <div class = "container">
         <p>Click below...</p>
         <div class = "panel-group">
            <div class = "panel panel-default">
               <div class = "panel-heading">
                  <h4 class = "panel-title">
                     <a data-toggle = "collapse" href = "#test">Free learning content</a>
               <div id = "test" class = "panel-collapse collapse">
                  <div class = "panel-body">We provide free learning content and quizzes as well.</div>
                  <div class = "panel-footer">Copyright 2018</div>
Samual Sam
Samual Sam

Learning faster. Every day.