Recall & Review
beginner
What is a
list group in Bootstrap?A
list group in Bootstrap is a flexible and powerful component for displaying a series of content items in a vertical list with consistent spacing and styling.Click to reveal answer
beginner
How do you create a basic list group in Bootstrap?
Use a
<ul> or <div> with the class list-group. Each item inside should have the class list-group-item.Click to reveal answer
beginner
How can you make a list group item active or highlighted?
Add the class
active to the list-group-item you want to highlight. It changes the background and text color to show it is selected.Click to reveal answer
intermediate
What class do you add to make list group items clickable links?Use
<a> tags with the class list-group-item list-group-item-action. This makes the items interactive and keyboard accessible.Click to reveal answer
intermediate
How do you add badges or extra info to list group items?
Place a
<span> with the class badge bg-primary rounded-pill inside the list-group-item. This shows a small colored label on the right side.Click to reveal answer
Which class is required on the container to create a Bootstrap list group?
✗ Incorrect
The container must have the class
list-group to apply Bootstrap's list group styles.How do you make a list group item appear selected or active?
✗ Incorrect
Adding the class
active highlights the list group item as selected.Which tag and classes make list group items clickable links?
✗ Incorrect
Using
<a> tags with both list-group-item and list-group-item-action makes items clickable and accessible.What class combination is used to add a badge to a list group item?
✗ Incorrect
The correct classes are
badge bg-primary rounded-pill to style badges properly.Which HTML element is NOT typically used for list group items?
✗ Incorrect
The
<table> element is not used for list group items; list groups use <li>, <a>, or <button>.Explain how to create a basic Bootstrap list group with three items, including one active item.
Think about the container and item classes needed.
You got /3 concepts.
Describe how to make list group items interactive links and add badges to them.
Focus on tags and classes for links and badges.
You got /2 concepts.