0
0
Bootsrapmarkup~5 mins

Carousel slides and controls in Bootsrap - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
Recall & Review
beginner
What is a carousel in web development?
A carousel is a slideshow component that cycles through elements like images or text, usually with controls to move forward or backward.
Click to reveal answer
beginner
Which Bootstrap class is used to create the main container for a carousel?
The <code>carousel</code> class is used on a <code>&lt;div&gt;</code> to create the main container for a Bootstrap carousel.
Click to reveal answer
intermediate
How do you add navigation controls to a Bootstrap carousel?
You add buttons with classes <code>carousel-control-prev</code> and <code>carousel-control-next</code> inside the carousel container to let users move slides backward and forward.
Click to reveal answer
intermediate
What attribute connects carousel controls to the carousel element in Bootstrap?
The data-bs-target attribute on control buttons points to the carousel's ID to link controls with the carousel.
Click to reveal answer
intermediate
Why is it important to include aria-label and aria-hidden in carousel controls?
These attributes improve accessibility by helping screen readers understand the controls and hiding decorative icons from assistive technologies.
Click to reveal answer
Which Bootstrap class is used for each slide inside a carousel?
Aitem-slide
Bslide-item
Ccarousel-slide
Dcarousel-item
What attribute should the carousel control buttons have to specify which carousel they control?
Adata-bs-slide
Bdata-bs-target
Cdata-slide-to
Ddata-target-slide
Which element is used to wrap the entire carousel in Bootstrap?
A&lt;div&gt;
B&lt;section&gt;
C&lt;article&gt;
D&lt;main&gt;
What role do the carousel-control-prev and carousel-control-next classes serve?
AThey create buttons to move slides backward and forward.
BThey pause the carousel automatically.
CThey add captions to slides.
DThey style the indicators below the carousel.
Why should carousel controls include aria-label attributes?
ATo add color to buttons.
BTo improve keyboard navigation.
CTo help screen readers describe the controls.
DTo make the carousel slide automatically.
Explain how to build a basic Bootstrap carousel with slides and navigation controls.
Think about the structure and classes needed for slides and controls.
You got /5 concepts.
    Describe why accessibility is important in carousel controls and how Bootstrap supports it.
    Consider users who rely on assistive technologies.
    You got /5 concepts.