0
0
Bootsrapmarkup~5 mins

Carousel indicators in Bootsrap - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
Recall & Review
beginner
What are carousel indicators in Bootstrap?
Carousel indicators are small clickable buttons or dots that show which slide is currently active in a Bootstrap carousel. They help users navigate between slides easily.
Click to reveal answer
beginner
How do you link carousel indicators to specific slides in Bootstrap?
Each indicator button uses the data-bs-target attribute to point to the carousel's ID and the data-bs-slide-to attribute to specify the slide number (starting from 0).
Click to reveal answer
intermediate
Why is the aria-current="true" attribute used on a carousel indicator?
It marks the active indicator for screen readers, improving accessibility by telling users which slide is currently shown.
Click to reveal answer
beginner
What role does the <code>active</code> class play in carousel indicators?
The <code>active</code> class highlights the current indicator visually, showing which slide is active in the carousel.
Click to reveal answer
intermediate
How can you make carousel indicators keyboard accessible?
Bootstrap's carousel indicators are buttons by default, so they can be focused and activated using keyboard keys like Tab and Enter, supporting keyboard navigation.
Click to reveal answer
Which attribute connects a carousel indicator to the carousel element?
Adata-bs-target
Bdata-slide
Chref
Did
What value does data-bs-slide-to use to indicate the first slide?
A1
Bfirst
C-1
D0
Which class marks the active carousel indicator?
Aactive
Bselected
Ccurrent
Dhighlight
Why are carousel indicators usually buttons instead of links?
ALinks are deprecated in Bootstrap
BLinks cannot be styled
CButtons support keyboard focus and activation better
DButtons load faster
What does the aria-current="true" attribute do on an indicator?
ADisables the indicator
BMarks it as the current slide for screen readers
CChanges its color
DMakes it clickable
Explain how carousel indicators work in Bootstrap and how they improve user experience.
Think about how users know which slide is active and how they can jump to another slide.
You got /4 concepts.
    Describe the accessibility features you should include when creating carousel indicators.
    Consider how people using keyboards or screen readers interact with the carousel.
    You got /4 concepts.