Complete the code to create a Bootstrap button component.
<button type="button" class="btn btn-[1]">Click me</button>
The class btn-primary styles the button with Bootstrap's primary color.
Complete the code to create a Bootstrap card component with a header.
<div class="card"> <div class="card-[1]">Header</div> <div class="card-body">Content</div> </div>
The class card-header creates a header section in a Bootstrap card.
Fix the error in the Bootstrap grid system code by completing the blank.
<div class="container"> <div class="row"> <div class="col-[1]">Column</div> </div> </div>
The class col-12 makes the column span the full width of the row in Bootstrap's grid.
Fill both blanks to create a responsive Bootstrap navbar with a brand and toggle button.
<nav class="navbar navbar-expand-[1] navbar-light bg-light"> <a class="navbar-[2]" href="#">Brand</a> </nav>
navbar-expand-lg makes the navbar expand on large screens.navbar-brand styles the brand link.
Fill all three blanks to create a Bootstrap modal with a header, body, and footer.
<div class="modal fade" id="exampleModal" tabindex="-1" aria-[1]="true" aria-labelledby="exampleModalLabel" aria-hidden="[2]"> <div class="modal-[3]"> <div class="modal-content"> <div class="modal-header">Header</div> <div class="modal-body">Body content</div> <div class="modal-footer">Footer</div> </div> </div> </div>
The attribute aria-label describes the modal for screen readers.aria-hidden="false" means the modal is visible.modal-dialog is the container for the modal content.