๐Ÿ…ฑ๏ธ Class 9 โ€” Welcome to Bootstrap

Topic 3 ยท Bootstrap Framework โ€” Your introduction to the world's most popular CSS framework

What is Bootstrap?

Bootstrap is a free, open-source CSS framework that lets you build responsive, mobile-first websites fast. Instead of writing every CSS rule yourself, you use Bootstrap's pre-built classes for layouts, buttons, forms, navigation, and more.

Why use Bootstrap?

Setting Up Bootstrap

Two ways to get Bootstrap into your project. The CDN method is fastest:

Option 1 ยท CDN (recommended for learning)

Add these two lines to your HTML โ€” one in <head>, one before </body>:

<!-- in <head> -->
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet">

<!-- before </body> -->
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.js"></script>

Option 2 ยท Download

Download Bootstrap from getbootstrap.com, unzip, and link the local files. Useful when you need to work offline.

The Bootstrap Grid System

The grid is how Bootstrap structures every layout. Three building blocks:

.container
Holds your layout. Fixed max-width.
.row
A horizontal row inside a container.
.col-*
A column inside a row. 12-column grid.
<div class="container">
  <div class="row">
    <div class="col-md-6">Left half</div>
    <div class="col-md-6">Right half</div>
  </div>
</div>

Responsive Breakpoints

The number after col- tells Bootstrap when to apply that width. Bootstrap has 5 breakpoint sizes:

See the Bootstrap Breakpoints reference (PDF) for the full chart.

Bootstrap Components We'll Use Most

Bootstrap Utilities

Utilities are tiny single-purpose classes you stack to get exactly the look you want. Some essentials:

Customisation & Theming

Bootstrap's default look is great for prototyping but every real project should be customised. You can:

Best Practices

What We're Building Toward

Over the next few classes you'll build a complete Bootstrap site โ€” Skywings, a luxury resort website. You'll use the grid, navbars, cards, carousels, and forms to build something that looks professional and works on every screen size.

๐Ÿ’ก The big idea: Bootstrap is a vocabulary. The more classes you recognise, the faster you can read and build. Spend time browsing the docs even when you're not coding โ€” it's the fastest way to level up.

๐Ÿ”— References

Bootstrap 5.3 Official Docs

W3Schools Bootstrap 5 Tutorial

Bootstrap Breakpoints (official)

Bootstrap Breakpoints reference (PDF)


Class 9 โ€” Equinim College ยท Front End Web Development ยท 26B