bootstrap·Beginner·Last tested: 2026-03·~5 min read
Bootstrap
Bootstrap is the most popular HTML, CSS, and JavaScript framework for building responsive, mobile-first web projects. It provides a complete toolkit of pre-built components and utilities for rapid UI development.
Key Features
- Responsive grid system - Flexbox-based 12-column layout that adapts to any screen size
- Pre-built components - Buttons, modals, navigation, forms, and dozens of other UI elements
- Utility classes - Spacing, typography, colors, and layout utilities for quick styling
- Customizable with Sass - Override variables and build custom themes
- JavaScript plugins - Interactive components like carousels, dropdowns, and tooltips
- RTL support - Built-in right-to-left language support
Installation
Install via npm:
npm install bootstrap
Or include via CDN:
<!-- CSS -->
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.8/dist/css/bootstrap.min.css" rel="stylesheet">
<!-- JavaScript Bundle -->
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.8/dist/js/bootstrap.bundle.min.js"></script>
Basic Usage
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.8/dist/css/bootstrap.min.css" rel="stylesheet">
<title>Bootstrap Example</title>
</head>
<body>
<div class="container">
<div class="row">
<div class="col-md-6">
<h1 class="text-primary">Hello Bootstrap</h1>
<button class="btn btn-success">Click me</button>
</div>
</div>
</div>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.8/dist/js/bootstrap.bundle.min.js"></script>
</body>
</html>
Tip
Bootstrap 5 no longer requires jQuery. All JavaScript components are built with vanilla JavaScript.
Notable Details
- License: MIT
- Language: Sass/SCSS, JavaScript
- Community: 174k+ GitHub stars, massive ecosystem
- Maintained by: Twitter's former team, now independent
- Current version: Bootstrap 5.x (Bootstrap 4 available on separate branch)