Complete the code to include Bootstrap CSS in your HTML file.
<link rel="stylesheet" href="[1]">
Bootstrap CSS is usually included via a CDN link like the one in option A.
Complete the code to add a Bootstrap button with primary style.
<button class="btn [1]">Click me</button>
The class btn-primary gives the button the primary Bootstrap style.
Fix the error in the Bootstrap grid code to create two equal columns.
<div class="row"> <div class="col-[1]">Column 1</div> <div class="col-[1]">Column 2</div> </div>
Bootstrap grid has 12 columns total. Using 'col-6' divides the row into two equal halves.
Fill in the blank to create a responsive Bootstrap navbar that collapses on small screens.
<nav class="navbar navbar-expand-[1] navbar-light 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"> <ul class="navbar-nav"> <li class="nav-item"> <a class="nav-link active" aria-current="page" href="#">Home</a> </li> </ul> </div> </nav>
The class 'navbar-expand-lg' makes the navbar expand on large screens and collapse on smaller ones.
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 to build on the card title.</p> <a href="#" class="btn btn-[3]">Go somewhere</a> </div> </div>
The card header uses 'card-header', the body uses 'card-body', and the button uses 'btn-primary' for styling.
