← Back to Bootstrap Course | Chapter 1: Getting Started | Lesson 1 of 7

What is Bootstrap

Bootstrap is a ready-made collection of styles and components that makes good-looking, responsive web pages fast.

In this page:

  1. What is Bootstrap

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

markup
<!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
  1. Thinking Bootstrap is a JavaScript-only library
  2. Writing custom CSS for things Bootstrap already provides
  3. 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:

Login to run this code

C/C++/Java/PHP execution requires a free account. Your code is saved — you'll land right back in the editor after logging in.