Complete the code to include Bootstrap CSS in your HTML file.
<link rel="stylesheet" href="[1]">
Bootstrap CSS is loaded from a CDN link to apply its styles to your page.
Complete the code to add a Bootstrap button with primary style.
<button class="btn [1]">Click me</button>
btn class.The class btn-primary styles the button with Bootstrap's primary color.
Fix the error in the Bootstrap grid code by completing the missing class.
<div class="container"> <div class="row"> <div class="[1]">Content</div> </div> </div>
row-12 which is not a valid column class.The correct Bootstrap grid class for a full-width column is col-12.
Fill in the blank to create a responsive Bootstrap navbar that collapses on small screens.
<nav class="navbar navbar-expand-[1] bg-light"> <button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarNav" aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation"> <span class="navbar-toggler-icon"></span> </button> <div class="collapse navbar-collapse" id="navbarNav"> <!-- Navbar content --> </div> </nav>
sm which expands too early on small screens.The navbar expands on large screens using navbar-expand-lg, making it collapse (with toggler) on small screens.
Fill all three blanks to create a Bootstrap card with a header, body text, and a button.
<div class="card" style="width: 18rem;"> <div class="card-[1]">Card Header</div> <div class="card-[2]"> <p class="card-text">Some quick example text.</p> <a href="#" class="btn btn-[3]">Go somewhere</a> </div> </div>
card-footer instead of card-header for the header.btn class on the button.The card header uses card-header, the body uses card-body, and the button uses the btn-primary style.