Bootstrap Code Editor - v5
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
<h2 class='m-5'>Accordion</h2>
<div class='container mb-5'>
<div class="accordion" id="accordionExample">
<div class="accordion-item">
<h2 class="accordion-header" id="headingOne">
<button class="accordion-button" type="button" data-bs-toggle="collapse" data-bs-target="#collapseOne" aria-expanded="true" aria-controls="collapseOne">
Accordion Item #1
</button>
</h2>
<div id="collapseOne" class="accordion-collapse collapse show" aria-labelledby="headingOne" data-bs-parent="#accordionExample">
<div class="accordion-body">
<strong>This is the first item's accordion body.</strong> It is hidden by default, until the collapse plugin adds the appropriate classes that we use to style each element. These classes control the overall appearance, as well as the showing and hiding via CSS transitions. You can modify any of this with custom CSS or overriding our default variables. It's also worth noting that just about any HTML can go within the <code>.accordion-body</code>, though the transition does limit overflow.
</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.