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><div></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?
✗ Incorrect
Each slide inside a Bootstrap carousel uses the class
carousel-item.What attribute should the carousel control buttons have to specify which carousel they control?
✗ Incorrect
The
data-bs-target attribute points to the carousel's ID to link controls.Which element is used to wrap the entire carousel in Bootstrap?
✗ Incorrect
A
<div> with class carousel wraps the entire carousel.What role do the
carousel-control-prev and carousel-control-next classes serve?✗ Incorrect
These classes create navigation buttons to move slides backward and forward.
Why should carousel controls include
aria-label attributes?✗ Incorrect
The
aria-label helps screen readers describe the purpose of controls.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.