<link> CDN tag — no build tools needed. You instantly get a polished design system: utility classes, components, a grid, and interactive widgets. In this playground Bootstrap 5.3 is pre-loaded in every preview.Learn Bootstrap 5 Online — 50 Interactive Lessons with Live Preview
What's included
Features
About this tool
Learn Bootstrap 5 Step by Step — 50 Interactive Lessons in the Browser
Bootstrap 5 is the world's most popular CSS framework, powering millions of websites and web applications. It gives you a complete design system in one CDN link: a responsive 12-column grid, a full library of UI components, utility classes for spacing and layout, and interactive JavaScript widgets — all without writing a line of custom CSS or JavaScript for most tasks. If you are learning web development for the first time, adding Bootstrap to an existing project, or prepping for a front-end interview, the Bootstrap 5 Playground gives you a structured, interactive path through the entire framework — with 50 live, editable examples and a preview that updates as you type.
The playground is organized into 15 chapters covering the complete Bootstrap 5 curriculum: Getting Started, Grid System, Typography, Colors & Borders, Tables, Images, Alerts & Badges, Buttons, Cards, Navigation, Forms, Components, Overlays, Carousel, and Utilities. Each lesson has a focused concept explanation and working HTML you can modify immediately. No Node.js, no terminal, no build step — open the playground and start writing.
The Grid System chapter teaches Bootstrap's 12-column responsive grid from the ground up: basic .col classes, breakpoint suffixes (sm/md/lg/xl/xxl), responsive column layouts with row-cols, column offsets with .offset-{n}, and visual reordering with .order-{n}. The grid is the foundation of every Bootstrap layout and understanding it thoroughly is the first milestone for any Bootstrap developer.
The Forms chapter (6 lessons) covers every input control Bootstrap provides: text, password, email, and textarea with .form-control; selects with .form-select; range sliders and color pickers; checkboxes, radio buttons, and switches with .form-check; input groups with text and button addons; floating labels that animate on focus; and the was-validated / needs-validation pattern for native browser constraint validation with Bootstrap's styled feedback messages.
The Components chapter (6 lessons) covers Bootstrap's most-used UI patterns: progress bars with striped and animated variants; spinners in border and grow styles for loading states; list groups with contextual colors and badges; accordions with data-bs-parent for exclusive open behavior; modals with scrollable and centered variants; and toasts — Bootstrap's push notification component — with auto-dismiss, custom delay, and persistent (non-autohide) configurations.
The Overlays chapter covers the three Bootstrap overlay patterns: dropdowns with headers, dividers, and direction variants (dropup, dropend, dropstart); tooltips and popovers — both auto-initialized in every preview so you can use them with just HTML attributes; and offcanvas panels that slide in from any edge — ideal for mobile navigation menus and side drawers.
The Utilities chapter (5 lessons) covers the building blocks for responsive fine-tuning without custom CSS: spacing utilities (margin and padding on all sides and breakpoints), flexbox utilities for alignment and distribution, display utilities for responsive show/hide, position utilities with corner anchoring, center alignment with translate-middle, and the notification badge pattern — plus shadows and overflow control.
Progress is saved to localStorage automatically. Your completed lessons persist across browser sessions. The sidebar progress bar shows how far through the curriculum you are. Completing every lesson in a chapter triggers a confetti animation. The dark mode toggle on FWD Tools switches the Bootstrap preview to native dark mode via Bootstrap 5.3's built-in color system — backgrounds, text, borders, and all components adapt instantly without any custom CSS.
Step by step
How to Use
- 1Pick a lesson from the sidebarThe sidebar lists all 50 lessons grouped into 15 chapters. Start at the beginning with Getting Started and work through Grid System, Typography, Colors, Tables, Images, Alerts, Buttons, Cards, Navigation, Forms, Components, Overlays, Carousel, and Utilities — or jump directly to any lesson you need.
- 2Read the concept panel at the topEach lesson opens with a concise explanation of the Bootstrap class, component, or pattern it covers — including which HTML attributes and class combinations to use. Collapse the concept panel once you understand it to give the editor and preview more room.
- 3Edit the HTML and watch the preview updateThe editor on the left contains working Bootstrap 5 HTML for the lesson. The preview on the right rebuilds automatically 400ms after you stop typing. Bootstrap 5.3.3 CSS and JavaScript are pre-loaded — just write body HTML, no boilerplate, no CDN links needed.
- 4Toggle dark mode to see Bootstrap's native themeUse the dark mode toggle on FWD Tools. The preview iframe switches automatically via data-bs-theme="dark" on the html element — Bootstrap 5.3 handles all color changes natively. Test how your layouts look in both light and dark before shipping.
- 5Interact with Bootstrap JavaScript componentsModals, dropdowns, accordions, tabs, carousels, toasts, offcanvas panels, tooltips, and popovers all work in the preview. Bootstrap bundle JS is loaded automatically and tooltips/popovers are pre-initialized — just use data-bs-* HTML attributes and click the elements to test them.
- 6Answer the Quick Check challengeSix key lessons include a multiple-choice Quick Check below the editor — covering the grid system, alerts role attribute, button semantics, navbar breakpoints, form validation, and accordion behavior. Select an answer to see the correct one highlighted immediately.
- 7Mark lessons done and track your progressClick "Mark Done →" in the footer to record your progress. The progress bar in the sidebar updates. When you complete every lesson in a chapter, a confetti animation fires. Toggle the button again to reset progress from that lesson forward.
- 8Download or share your modified codeClick .html to download the current lesson as a standalone HTML file with Bootstrap 5.3.3 already linked — ready to open in any browser. The Share button encodes your code into a URL so you can send your exact modifications to a colleague or student.
Real-world uses
Common Use Cases
Got questions?
Frequently Asked Questions
There are 50 lessons across 15 chapters: Getting Started, Grid System, Typography, Colors & Borders, Tables, Images, Alerts & Badges, Buttons, Cards, Navigation, Forms (including Floating Labels and Validation), Components (including Toasts), Overlays, Carousel, and Utilities (including Position). Every lesson includes a working HTML example you can edit live and see in the preview instantly.
No. All code runs locally in a sandboxed iframe in your browser. Nothing is sent to a server. Bootstrap 5.3.3 CSS and JavaScript are loaded from the jsDelivr CDN into the preview iframe — your HTML code never leaves your device.
Yes. Completed lessons and your last open position are saved to localStorage in your browser. When you return, the playground reopens at the lesson you were on and shows your completed lessons in the sidebar progress bar.
Every lesson uses Bootstrap 5.3.3 loaded from the jsDelivr CDN. Both the Bootstrap CSS and the Bootstrap bundle JavaScript (which includes Popper.js) are included automatically — no setup, no imports, no package manager needed.
Yes. When you toggle dark mode on FWD Tools, the Bootstrap preview automatically switches via the data-bs-theme="dark" attribute on the html element. Bootstrap 5.3 handles all the color changes natively — backgrounds, borders, text, and components all adapt without any custom CSS.
Yes. Bootstrap 5.3.3 bundle JavaScript is loaded in every preview, so all data-bs-* components work: modals, dropdowns, accordions, tabs, carousels, toasts, offcanvas panels, tooltips, and popovers. Tooltips and popovers are auto-initialized by the playground, so you only need the HTML attributes.
The Toasts lesson (in the Components chapter) shows how to trigger toasts with new bootstrap.Toast(el).show(). You can control the delay with the { delay: ms } option and prevent auto-dismiss with data-bs-autohide="false". All three patterns are demonstrated with working buttons in the lesson.
Yes. Click the .html button to download the current lesson code as a standalone HTML file with Bootstrap 5.3.3 already linked. The Share button encodes your code into a URL parameter so you can send your exact code to a colleague or student.