Bootstrap
Bootstrap is the world's most popular open-source front-end framework for HTML, CSS, and JavaScript. Originally developed at Twitter, it provides a rich set of components and powerful JavaScript plugins that help developers quickly build responsive web applications.
Quick Start
CDN Include
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet">
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js"></script>
npm Install
npm install bootstrap@5
Core Features
- Responsive layout — 12-column grid system that adapts to any screen
- Rich components — navbars, cards, forms, modals, and more
- JavaScript plugins — dropdowns, carousels, accordions, and more
- Sass support — easy theme customization
Documentation
- Introduction — learn what Bootstrap is
- Installation Guide — get Bootstrap up and running
- User Manual — grid system, components, utilities, and more
- FAQ — common questions answered
Common Classes
| Class | Description |
|---|---|
| container | Fixed width container |
| container-fluid | Full width container |
| row | Grid row |
| col | Grid column |
| btn | Button |
| card | Card component |
| navbar | Navigation bar |
| modal | Modal dialog |
Resources
- Official docs: https://getbootstrap.com/
- GitHub: https://github.com/twbs/bootstrap
When to Use Bootstrap
- Rapid prototyping
- Internal business management systems
- Responsive websites
- Admin dashboards
