Complete the code to make the button toggle the collapse content.
<button class="btn btn-primary" type="button" data-bs-toggle="[1]" data-bs-target="#collapseExample" aria-expanded="false" aria-controls="collapseExample"> Toggle Content </button>
The data-bs-toggle="collapse" attribute tells Bootstrap to toggle the collapse component when the button is clicked.
Complete the code to include the required JavaScript bundle for Bootstrap interactive components.
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.[1]"></script>
The JavaScript bundle file ends with .js to enable Bootstrap's interactive features.
Fix the error in the button code to make the dropdown work properly.
<button class="btn btn-secondary dropdown-toggle" type="button" id="dropdownMenuButton" data-bs-toggle="[1]" aria-expanded="false"> Dropdown button </button>
The attribute data-bs-toggle="dropdown" is required to activate the dropdown menu on button click.
Fill both blanks to create a Bootstrap tooltip that appears on hover.
<button type="button" class="btn btn-info" data-bs-toggle="[1]" data-bs-placement="[2]" title="Tooltip text"> Hover me </button>
Use data-bs-toggle="tooltip" to enable tooltips and data-bs-placement="top" to position it above the button.
Fill all three blanks to create a Bootstrap modal trigger button with correct attributes.
<button type="button" class="btn btn-danger" data-bs-toggle="[1]" data-bs-target="#exampleModal" aria-[2]="true" aria-[3]="exampleModalLabel"> Launch Modal </button>
The button uses data-bs-toggle="modal" to open the modal. The ARIA attributes aria-expanded="true" and aria-labelledby="exampleModalLabel" improve accessibility by describing the modal state and label.
