Complete the code to create a Bootstrap card container.
<div class="[1]"> <div class="card"> <div class="card-body"> This is a card. </div> </div> </div>
The container class creates a responsive fixed width container for the card.
Complete the code to add a card title inside the card body.
<div class="card"> <div class="card-body"> <h5 class="[1]">Card Title</h5> <p class="card-text">Some quick example text.</p> </div> </div>
The card-title class styles the heading as the card's title.
Fix the error in the card image code by completing the class name.
<div class="card" style="width: 18rem;"> <img src="image.jpg" class="[1]" alt="Card image"> <div class="card-body"> <p class="card-text">Image above the text.</p> </div> </div>
The card-img-top class places the image at the top of the card with correct styling.
Fill both blanks to create a card with a header and footer.
<div class="card"> <div class="[1]">Featured</div> <div class="card-body"> <p class="card-text">Content inside the card body.</p> </div> <div class="[2]">Footer text</div> </div>
The card-header class creates a header section, and card-footer creates a footer section in the card.
Fill all three blanks to create a card with an image, title, and button.
<div class="card" style="width: 18rem;"> <img src="pic.jpg" class="[1]" alt="Card image"> <div class="card-body"> <h5 class="[2]">Card Title</h5> <a href="#" class="btn [3]">Go somewhere</a> </div> </div>
The image uses card-img-top, the title uses card-title, and the button uses btn-primary for a blue styled button.
