0
0
Bootsrapmarkup~5 mins

Close button component in Bootsrap - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
Recall & Review
beginner
What is the purpose of the Bootstrap close button component?
It provides a simple, accessible button to close or dismiss content like modals, alerts, or popups.
Click to reveal answer
beginner
Which HTML element and class does Bootstrap use for a close button?
A <button> element with the class btn-close is used for the close button.
Click to reveal answer
intermediate
How do you make a Bootstrap close button accessible for screen readers?
Add aria-label="Close" to the button so screen readers announce its purpose.
Click to reveal answer
beginner
What visual style does the Bootstrap close button have by default?
It shows a small 'X' icon with no background and changes color on hover for clarity.
Click to reveal answer
intermediate
How can you customize the size of a Bootstrap close button?
Use additional classes like btn-close-sm or btn-close-lg to change its size.
Click to reveal answer
Which class is used to create a close button in Bootstrap?
Aclose-btn
Bbtn-close
Cbtn-dismiss
Dclose-button
What attribute should you add to a Bootstrap close button for accessibility?
Arole="button"
Btitle="Close"
Calt="Close"
Daria-label="Close"
What HTML element is recommended for a Bootstrap close button?
A<button>
B<a>
C<div>
D<span>
How does the Bootstrap close button visually indicate it is clickable?
AIt blinks
BIt shows a tooltip
CIt changes color on hover
DIt grows in size
Which class would you add to make a larger Bootstrap close button?
Abtn-close-lg
Bbtn-close-large
Cbtn-close-big
Dbtn-close-xl
Explain how to create an accessible close button using Bootstrap.
Think about HTML element, Bootstrap class, and accessibility attribute.
You got /3 concepts.
    Describe how the Bootstrap close button looks and behaves visually.
    Focus on icon shape, background, hover effect, and interactivity.
    You got /4 concepts.