Aral Code

Getting Started Lesson 1 of 12

Introduction to Bootstrap

What Bootstrap is, why developers use a CSS framework, how classes like btn and container work, and a first page styled with Bootstrap.

Bootstrap was created at Twitter in 2011 by Mark Otto and Jacob Thornton to keep their internal tools consistent. It became open source and is now used on millions of websites. Version 5 is the current version and no longer needs jQuery.

What does Bootstrap give you?

  • A responsive grid that rearranges content for phones, tablets and laptops.
  • Components: buttons, cards, navbars, forms, alerts, modals, carousels and more.
  • Utility classes for spacing, colors, text and alignment, like mt-3 (margin-top) or text-center.
  • Consistent design that looks good on every browser.

Before and after

Here's a plain HTML page:

Example Without Bootstrap
<h1>Tindahan ni Aling Nena</h1>
<p>Fresh pandesal every morning.</p>
<button>Order now</button>
<button>View menu</button>

Now the same HTML with Bootstrap's stylesheet and a few class names:

Example With Bootstrap
<link rel="stylesheet" href="/vendor/bootstrap.min.css">
<div class="container py-4">
  <h1 class="display-5 fw-bold text-success">Tindahan ni Aling Nena</h1>
  <p class="lead">Fresh pandesal every morning.</p>
  <button class="btn btn-success btn-lg">Order now</button>
  <button class="btn btn-outline-secondary btn-lg">View menu</button>
</div>

We didn't write any CSS. Each class adds a ready-made style:

  • container centers the content with comfortable side padding.
  • py-4 adds padding on the top and bottom.
  • display-5, fw-bold and lead style the text.
  • btn btn-success btn-lg makes a large green button.

How Bootstrap works

Bootstrap is just a big CSS file (plus an optional JavaScript file for interactive parts). You link it in your page, then use its class names in your HTML. Learning Bootstrap mostly means learning which classes exist and how to combine them.

When to use Bootstrap

Good forLess ideal for
School projects and capstone systems that must look neat fastVery unique, custom designs
Admin dashboards and internal toolsPages where every kilobyte matters
Prototypes and landing pagesLearning CSS fundamentals (learn CSS first!)

Quick Quiz

Check what you learned. Walang grade ito, practice lang. 🙂

1. What is Bootstrap?
2. How do you use Bootstrap styles?
3. Does Bootstrap 5 require jQuery?
4. What does the container class do?

By Sir Reyel · Last updated 2026-12-04