WeCodeAcademy

Bootstrap Collapse and Accordion

Examplehtml
Open in editor »

data-bs-parent makes the panels behave like an accordion: opening one closes the others.

Quick check

What does data-bs-parent do in an accordion?

Finish the quick check (and any code exercise) to complete this lesson, or mark it done yourself.

Tip: use the left and right arrow keys to move between lessons.