ShapeYourPath
(current)
Run Code
Live Code Editor- Showing Collapsible Content
Source Code
<!doctype html> <html lang="en"> <head> <!-- Required meta tags --> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> <!-- Bootstrap CSS --> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css"> <title>Showing Collapsible Content</title> </head> <body> <div class="container text-center mt-4"> <h1 class="text-center">Bootstrap Collapse</h1> <p class="text-center">Bootstrap collapse features are used to hide and show large information. </p> <button data-toggle="collapse" data-target="#myBlockId" class="btn btn-success">Click To Show The Effect</button> <div id="myBlockId" class="collapse show"> Bootstrap is a HTML,CSS & Javascript based CSS framework that is widely used during web development. </div> </div> </div><!--/container--> <!-- jQuery first, then Popper.js, then Bootstrap JS --> <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"> </script> <script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.16.0/umd/popper.min.js"></script> <script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.5.2/js/bootstrap.min.js"></script> </body> </html>
Output :
Running