bootstrapbeginnermit
Bootstrap Accordion
An FAQ accordion.
5.8k3.0k351196
About this module
A Bootstrap accordion with proper ARIA wiring, flush styling and a chevron toggle.
#bootstrap#accordion#faq
Source code
Installation
- 1
Install Bootstrap
Install the package or add the CDN link.
npm install bootstrap - 2
Load the CSS
Import `bootstrap/dist/css/bootstrap.min.css` (and `bootstrap.bundle.min.js` for JS components).
- 3
Paste the markup
Copy the markup into your page.
Usage
- 1
Copy the markup
Paste the HTML below into your page or template.
- 2
Check the JS bundle
Include the Bootstrap JS bundle for the interactive behavior.