What is Bootstrap
Bootstrap is a ready-made collection of styles and components that makes good-looking, responsive web pages fast.
In this page:
What is Bootstrap
Bootstrap is the most popular CSS framework for responsive, mobile-first websites. It gives you a grid, typography, buttons, forms, navigation, cards, modals and more, all controlled by class names on ordinary HTML. Version 5 no longer needs jQuery.
Note:
You style with classes, so you rarely write custom CSS for common layouts.
Example: What is Bootstrap
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet">
</head>
<body class="p-3">
<div class="container">
<h1 class="text-primary">Hello, Bootstrap!</h1>
<p class="lead">Styled with a handful of classes.</p>
<button class="btn btn-success">A Bootstrap button</button>
</div>
</body>
</html>
Live Example
Related Topics
Common Mistakes
- Thinking Bootstrap is a JavaScript-only library
- Writing custom CSS for things Bootstrap already provides
- Mixing Bootstrap 3 or 4 class names into Bootstrap 5
Chapter Summary
- Bootstrap is a CSS and JS component framework
- Mobile-first and responsive
- Controlled with class names
- Version 5 has no jQuery dependency
🔒
Chapter Quiz — Complete all 7 topics to unlock
0/7 topics done
Complete these topics first: