LESSON 10.5
What Else Can Bootstrap Do?
A tour of Bootstrap components you will use on real projects
Explore Bootstrap forms, buttons, modals, hamburger navigation, accordions, spacing utilities, and color classes — all with Bootstrap 5 syntax.
💡 The Concept
Bootstrap does a lot more than columns. Here is a tour of the most useful features you will reach for on real projects.
Responsive Images
Add class="img-fluid" to your images in a Bootstrap website. I recommend adding it to all of your images. It makes images autofit to the right size by applying three responsive properties:
display: block;max-width: 100%;height: auto;
<img src="photo.jpg" class="img-fluid" alt="Description">
Bootstrap also has a variety of image classes you can add to quickly style your images. W3Schools has a nice summary: Bootstrap Images
Elegant Forms
Bootstrap has form classes that make your forms much more graceful. By adding Bootstrap classes to your form fields, you get a polished look without writing custom CSS.

W3Schools has several Bootstrap form layouts to get you started: Bootstrap Forms
Modal (Popup)
Popups are called modals in design because they overlay on top of the web page and prevent any other activity until they are dismissed. Even if you know some JavaScript, starting with the Bootstrap modal gives you a much more polished result.

<!-- Button to open the modal -->
<button class="btn btn-primary" data-bs-toggle="modal" data-bs-target="#myModal">
Open Popup
</button>
<!-- The modal -->
<div class="modal fade" id="myModal" tabindex="-1">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title">Hello!</h5>
<button type="button" class="btn-close" data-bs-dismiss="modal"></button>
</div>
<div class="modal-body">
<p>This is a Bootstrap modal.</p>
</div>
</div>
</div>
</div>
Note that the background behind the popup is grayed out, keeping your visitor focused on the popup. When clients ask me to build popups, I usually try to suggest alternatives first. Many visitors find popups disruptive and some browsers block them. But if a popup is what the project calls for, Bootstrap makes it easy to build an attractive one.
Hamburger Navigation
You can use Bootstrap to create navigation that converts to a hamburger menu on mobile. Bootstrap also supports dropdown menus using the same approach.
On smaller screens, the full menu collapses into a hamburger icon like this:

W3Schools has the code to get you started: Bootstrap Navbar
Accordion
Ever notice how on FAQ pages the question opens up when you click on it? You do not need to know JavaScript to add an accordion. Bootstrap handles all the show and hide behavior for you.

W3Schools has the code to get you started: Bootstrap Accordion
This is just a sample of what Bootstrap offers. The full documentation at getbootstrap.com covers dozens more components. As you build more projects, you will find yourself reaching for Bootstrap features regularly.
★ Key Takeaways
Bootstrap comes with a wide range of ready-made components beyond the grid. This lesson introduced forms, modals, hamburger navigation, and accordions. Each one saves you the time of writing custom CSS and JavaScript from scratch. Next, you will learn how to publish your website to the internet. Getting your site live is one of the most satisfying steps in web development.
❓ Frequently Asked Questions
No. Bootstrap handles the show and hide behavior through data attributes built into the HTML. You just copy the structure, fill in your own content, and it works. No JavaScript knowledge required.
The Bootstrap navbar requires Bootstrap’s JavaScript file. If you only linked the Bootstrap CSS in your page, interactive components like the hamburger menu and modals will not work. Make sure your CDN link includes the full Bootstrap bundle, which contains both the CSS and the JavaScript.
Google Ads
The costs of this website are partially offset by revenue from Google Ads.Tools of the Trade
HTML/CSS Lessons
-
-
-
1.3. HTML Tag Preview
-
-
-
2.2. The HTML Framework
-
-
2.4. HTML Headings
-
-
-
-
-
-
3.01. Introduction to CSS
-
3.02. How CSS Cascades
-
-
-
-
3.05. CSS Colors
-
3.06. RGBA Colors
-
-
3.08. Font and Text Properties
-
3.09. Classes and IDs
-
-
-
-
-
4.3. HTML Embedded Images
-
-
-
-
-
-
5.1. CSS Borders
-
5.2. CSS Border Radius
-
5.3. CSS Gradients
-
5.4. CSS Box Shadows
-
5.5. CSS Text Shadows
-
7.1. The Display Property
-
-
-
7.4. The Box Model
-
-
-
-
-
-
9.1. Website Tables
-
9.2. HTML Forms
-
-
9.4. Special Form Fields
-
9.5. Embedding Multimedia
-
-
9.7. Keyboard Shortcuts
-
10.1. What Is a Framework?
-
10.2. Font Awesome Icons
-
-
10.4. Bootstrap Grid System
-
-
10.6. Bootstrap Navigation
-
-
11.2. Purchasing a Domain Name
-
11.3. Website Hosting
-
11.4. Nameservers and DNS
-
11.5. FTP
-
11.6. GitHub Pages
