Bootstrap 5 Basics Quiz
Want to learn more than this quiz offers you? Have a look at my Frontend web
development courses.
Create an account and save your quiz results
Login and save your results
OR
Question 1/15
How do you include Bootstrap 5 CSS in your project?
Select your answer
Question 2/15
How would you display an element as block in Bootstrap 5?
Select your answer
Question 3/15
Which utility class is used to add shadow to an element in Bootstrap 5?
Select your answer
Question 4/15
What Bootstrap component is used to display a series of related content by clicking tabs?
Select your answer
Question 5/15
Which Bootstrap 5 class do you use to center a block-level element horizontally?
Select your answer
Question 6/15
What is the correct HTML element to create a Bootstrap 5 modal?
Select your answer
Question 7/15
How do you make a button active in Bootstrap 5?
Select your answer
Question 8/15
Which class would turn a link into a button element in Bootstrap 5?
Select your answer
Question 9/15
Which Bootstrap 5 utility class would you use to make text lowercase?
Select your answer
Question 10/15
Which Bootstrap 5 component would you use to create a carousel?
Select your answer
Question 11/15
What is the default grid system in Bootstrap 5 based on?
Select your answer
Question 12/15
Which actual type becomes the Bootstrap 5 switch component?
Select your answer
Question 13/15
What class would you use to hide an element on all screen sizes in Bootstrap 5?
Select your answer
Question 14/15
Which of the following is a Bootstrap 5 border utility class?
Select your answer
Question 15/15
Which class provides a horizontal rule in Bootstrap 5?
Select your answer
Your Results
You did not answer any questions correctly.
Your Answers
Question 1/15
😊 Your
answer was correct
🙁 Your
answer was incorrect
How do you include Bootstrap 5 CSS in your project?
Available answers
To use Bootstrap 5 CSS, you usually include a link to Bootstrap's stylesheet in your HTML file.
Question 2/15
😊 Your
answer was correct
🙁 Your
answer was incorrect
How would you display an element as block in Bootstrap 5?
Available answers
Using the .d-block class will set an element's display to block in Bootstrap 5.
Question 3/15
😊 Your
answer was correct
🙁 Your
answer was incorrect
Which utility class is used to add shadow to an element in Bootstrap 5?
Available answers
The .shadow utility class in Bootstrap 5 adds a shadow to an element.
Question 4/15
😊 Your
answer was correct
🙁 Your
answer was incorrect
What Bootstrap component is used to display a series of related content by clicking tabs?
Available answers
The Tabs component in Bootstrap 5 is used to organize content into tabbed sections.
Question 5/15
😊 Your
answer was correct
🙁 Your
answer was incorrect
Which Bootstrap 5 class do you use to center a block-level element horizontally?
Available answers
.mx-auto is used in Bootstrap 5 to center a block-level element horizontally.
Question 6/15
😊 Your
answer was correct
🙁 Your
answer was incorrect
What is the correct HTML element to create a Bootstrap 5 modal?
Available answers
In Bootstrap 5, a modal is created using a
element.
Question 7/15
😊 Your
answer was correct
🙁 Your
answer was incorrect
How do you make a button active in Bootstrap 5?
Available answers
To make a button look active in Bootstrap 5, you add the .active class to it.
Question 8/15
😊 Your
answer was correct
🙁 Your
answer was incorrect
Which class would turn a link into a button element in Bootstrap 5?
Available answers
Applying the .btn class will style links to resemble buttons in Bootstrap 5.
Question 9/15
😊 Your
answer was correct
🙁 Your
answer was incorrect
Which Bootstrap 5 utility class would you use to make text lowercase?
Available answers
The .text-lowercase utility class in Bootstrap 5 is used to make text appear in lowercase.
Question 10/15
😊 Your
answer was correct
🙁 Your
answer was incorrect
Which Bootstrap 5 component would you use to create a carousel?
Available answers
The Carousel component is used to create carousels in Bootstrap 5.
Question 11/15
😊 Your
answer was correct
🙁 Your
answer was incorrect
What is the default grid system in Bootstrap 5 based on?
Available answers
Bootstrap 5 uses a responsive, mobile-first 12-column grid system.
Question 12/15
😊 Your
answer was correct
🙁 Your
answer was incorrect
Which actual <input> type becomes the Bootstrap 5 switch component?
Available answers
A switch component in Bootstrap 5 is based on an element of type 'checkbox'.
Question 13/15
😊 Your
answer was correct
🙁 Your
answer was incorrect
What class would you use to hide an element on all screen sizes in Bootstrap 5?
Available answers
The .d-none class hides an element on all screen sizes in Bootstrap 5.
Question 14/15
😊 Your
answer was correct
🙁 Your
answer was incorrect
Which of the following is a Bootstrap 5 border utility class?
Available answers
The .border class is a utility class in Bootstrap 5 used for adding border to elements.
Question 15/15
😊 Your
answer was correct
🙁 Your
answer was incorrect
Which class provides a horizontal rule in Bootstrap 5?
Available answers
The standard HTML tag
is styled by Bootstrap 5 itself for a horizontal rule.
is styled by Bootstrap 5 itself for a horizontal rule.
show = false, 4000);"
x-show="show && message" x-transition:enter="transition ease-out duration-300"
x-transition:enter-start="opacity-0 transform translate-y-2" x-transition:enter-end="opacity-100"
x-transition:leave="transition ease-in duration-100" x-transition:leave-start="opacity-100"
x-transition:leave-end="opacity-0 transform translate-y-2" @click.away="show = false"
@keydown.escape.window="show = false" role="alert" aria-live="assertive" aria-labelledby="flashMessageTitle"
aria-describedby="flashMessageDesc"
class="fixed top-0 right-0 mt-8 mr-8 bg-white rounded overflow-hidden shadow-2xl max-w-xl" x-cloak>