0
0
Bootsrapmarkup~5 mins

Spinner components in Bootsrap - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
Recall & Review
beginner
What is a spinner component in Bootstrap?
A spinner component in Bootstrap is a small animated graphic that shows loading or processing activity to users, helping them know the app is working.
Click to reveal answer
beginner
How do you create a simple spinner using Bootstrap?
Use the <div class='spinner-border' role='status'><span class='visually-hidden'>Loading...</span></div> code. This creates a circular spinner with accessible text.
Click to reveal answer
intermediate
What role does role='status' play in spinner components?
It helps screen readers announce the spinner as a status message, improving accessibility for users who rely on assistive technology.
Click to reveal answer
beginner
Name two types of spinners Bootstrap offers.
Bootstrap offers border spinners (a rotating border) and grow spinners (a growing and shrinking circle).
Click to reveal answer
intermediate
How can you change the color of a Bootstrap spinner?
Add a color utility class like <code>text-primary</code>, <code>text-success</code>, or <code>text-danger</code> to the spinner element to change its color.
Click to reveal answer
Which Bootstrap class creates a border spinner?
Aspinner-border
Bspinner-grow
Cspinner-circle
Dspinner-rotate
What is the purpose of the <span class='visually-hidden'> inside a spinner?
ATo add color to the spinner
BTo show a tooltip on hover
CTo provide accessible text for screen readers
DTo animate the spinner
Which attribute improves accessibility by indicating the spinner is a status message?
Atabindex='0'
Brole='button'
Caria-hidden='true'
Drole='status'
How do you make a spinner larger in Bootstrap?
AAdd class <code>spinner-border</code> with custom CSS size
BAdd inline style <code>font-size</code>
CAdd class <code>spinner-lg</code>
DAdd class <code>spinner-border-sm</code>
Which spinner type grows and shrinks instead of rotating?
Aspinner-border
Bspinner-grow
Cspinner-pulse
Dspinner-fade
Explain how to create an accessible spinner component in Bootstrap.
Think about both the visual spinner and how screen readers understand it.
You got /3 concepts.
    Describe how you can customize the appearance of Bootstrap spinners.
    Consider color, size, and spinner style.
    You got /3 concepts.