Recall & Review
beginner
What is the purpose of Bootstrap's border utilities?
Bootstrap's border utilities let you quickly add or remove borders on elements without writing custom CSS. They help style borders easily using predefined classes.Click to reveal answer
beginner
How do you add a border to all sides of an element using Bootstrap?
Use the class
.border. This adds a 1px solid border on all four sides of the element.Click to reveal answer
beginner
Which class removes the border from an element in Bootstrap?The class
.border-0 removes all borders from the element.Click to reveal answer
beginner
How can you add a border only to the top side of an element?
Use the class
.border-top to add a border only on the top side.Click to reveal answer
beginner
How do you change the border color using Bootstrap border utilities?
Add a color class like <code>.border-primary</code>, <code>.border-success</code>, or <code>.border-danger</code> to change the border color to Bootstrap's theme colors.Click to reveal answer
Which class adds a border to all sides of an element?
✗ Incorrect
The class .border adds a border on all sides of the element.
How do you remove all borders from an element?
✗ Incorrect
The class .border-0 removes all borders from the element.
Which class adds a border only on the bottom side?
✗ Incorrect
The class .border-bottom adds a border only on the bottom side.
To change the border color to Bootstrap's primary color, which class should you use?
✗ Incorrect
The class .border-primary changes the border color to Bootstrap's primary theme color.
Which class adds a border only on the left side?
✗ Incorrect
The class .border-left adds a border only on the left side.
Explain how to add and remove borders on specific sides of an element using Bootstrap border utilities.
Think about the classes that target all sides vs. individual sides.
You got /3 concepts.
Describe how to change the color of borders using Bootstrap border utilities.
Bootstrap uses color utility classes for borders similar to text and background colors.
You got /2 concepts.