Complete the code to add the Bootstrap CSS link in the head section.
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>My Bootstrap Page</title> <link rel="stylesheet" href="[1]"> </head> <body> <h1>Hello, Bootstrap!</h1> </body> </html>
The correct link to include Bootstrap CSS is the official CDN URL. This ensures Bootstrap styles are applied.
Complete the code to add a Bootstrap button with primary style.
<button type="button" class="btn [1]">Click me</button>
btn base classThe class btn-primary styles the button with Bootstrap's primary color.
Fix the error in the Bootstrap container class to center content.
<div class="[1]"> <p>Centered content</p> </div>
container-fluid which is full widthThe class container creates a responsive fixed-width container that centers content horizontally.
Fill both blanks to create a responsive grid with two columns on medium screens.
<div class="container"> <div class="row"> <div class="col-md-[1]">Column 1</div> <div class="col-md-[2]">Column 2</div> </div> </div>
col-12 which makes full widthUsing col-md-6 for both columns divides the row into two equal halves on medium and larger screen sizes.
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">This is some text inside the card body.</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.