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) ortext-center. - Consistent design that looks good on every browser.
Before and after
Here's a plain HTML page:
<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:
<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:
containercenters the content with comfortable side padding.py-4adds padding on the top and bottom.display-5,fw-boldandleadstyle the text.btn btn-success btn-lgmakes 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 for | Less ideal for |
|---|---|
| School projects and capstone systems that must look neat fast | Very unique, custom designs |
| Admin dashboards and internal tools | Pages where every kilobyte matters |
| Prototypes and landing pages | Learning CSS fundamentals (learn CSS first!) |
Quick Quiz
Check what you learned. Walang grade ito, practice lang. 🙂
By Sir Reyel · Last updated 2026-12-04