0
0
Bootsrapmarkup~5 mins

List group component in Bootsrap - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
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?
Alist-group
Blist-item
Cgroup-list
Dlist-container
How do you make a list group item appear selected or active?
AAdd class <code>selected</code>
BAdd class <code>active</code>
CAdd class <code>highlight</code>
DAdd class <code>focus</code>
Which tag and classes make list group items clickable links?
A<code>&lt;button&gt;</code> with <code>list-group-item</code>
B<code>&lt;div&gt;</code> with <code>list-group-item-action</code>
C<code>&lt;a&gt;</code> with <code>list-group-item list-group-item-action</code>
D<code>&lt;span&gt;</code> with <code>list-group-item</code>
What class combination is used to add a badge to a list group item?
Abadge-primary pill-rounded
Bbadge-pill bg-primary
Cbadge rounded bg-primary
Dbadge bg-primary rounded-pill
Which HTML element is NOT typically used for list group items?
A<code>&lt;table&gt;</code>
B<code>&lt;a&gt;</code>
C<code>&lt;button&gt;</code>
D<code>&lt;li&gt;</code>
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.