Bootstrap Code Editor - v5
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
<h2 class='m-5'>Collapse</h2><div class='container pb-5'> <h6>collapse button example</h6>
<p>
<a class="btn btn-primary" data-bs-toggle="collapse" href="#collapseExample" role="button" aria-expanded="false" aria-controls="collapseExample">
Link with href
</a>
<button class="btn btn-primary" type="button" data-bs-toggle="collapse" data-bs-target="#collapseExample" aria-expanded="false" aria-controls="collapseExample">
Button with data-bs-target
</button>
</p>
<div class="collapse" id="collapseExample">
<div class="card card-body">
Some placeholder content for the collapse component. This panel is hidden by default but revealed when the user activates the relevant trigger.
</div>
</div>
Bootstrap is one of the most popular frontend framework for web development. It has pre define CSS style and JS bundle for faster web page development.
This tool is using bootstrap version v5.3.3
You can select or search top most used code snippets and see the result. You also can write your own custom code in text editor and run code on fly, Try to resize preview panel from resize handler and see responsive behavior. Bootstrap CSS and JS library is loaded by default in preview panel so you no need to load files manually.