Bootstrap Tutorial
Bootstrap is the world's most popular CSS framework. It gives you ready-made styles and components, like a responsive grid, buttons, cards, navigation bars and pop-up modals, so you can build good-looking, mobile-friendly pages quickly by adding class names to your HTML.
This free course has 12 lessons using Bootstrap 5. Every example runs live: press Try it yourself, change the classes, and see the result immediately.
Before you start
You should know basic HTML and some CSS. Bootstrap doesn't replace CSS knowledge; it saves you from rewriting the same styles on every project.
What you'll be able to do
- Add Bootstrap to any page
- Build responsive layouts with the 12-column grid
- Style text, spacing and colors with utility classes
- Use buttons, tables, forms, cards, alerts and badges
- Add a responsive navbar, modals and accordions
- Build a complete landing page for a small business
All lessons
Getting Started
- Introduction to BootstrapWhat Bootstrap is, why developers use a CSS framework, how classes like btn and container work, and a first page styled with Bootstrap.
- Getting Started with Bootstrap 5Add Bootstrap 5 to a page with the CDN or downloaded files, use the starter template with the viewport meta tag, and load the JavaScript bundle for interactive components.
Layout
- Bootstrap Grid System — Containers, Rows and ColumnsBuild layouts with Bootstrap's 12-column grid — containers, rows and col classes, column widths, gutters, nesting and alignment.
- Bootstrap Responsive BreakpointsMake layouts change with screen size using breakpoints sm, md, lg, xl and xxl, combine column classes, reorder columns, and hide or show content on phones.
- Bootstrap Utilities — Spacing, Colors, Text and FlexStyle anything quickly with Bootstrap utilities — margin and padding (m-3, px-4), text and background colors, typography, borders, shadows, sizing and flex helpers.
Components
- Bootstrap Buttons, Badges and AlertsCreate styled buttons with btn classes, sizes, outline styles and button groups, label things with badges, and show messages with alerts.
- Bootstrap TablesStyle tables with Bootstrap — table, table-striped, table-hover, table-bordered, colored rows, small tables, and responsive tables that scroll on phones.
- Bootstrap FormsBuild good-looking forms with Bootstrap — form-control, form-label, form-select, checks and radios, floating labels, input groups, grid layouts and validation styles.
- Bootstrap CardsDisplay content in Bootstrap cards with images, titles, text, buttons, headers and footers, and arrange them in responsive card grids for products, courses or news.
- Bootstrap Navbar and NavigationBuild a responsive Bootstrap navbar that collapses into a hamburger menu on phones, with brand, links, dropdowns and active states, plus nav tabs, pills and breadcrumbs.
- Bootstrap Modals, Accordions, Toasts and CarouselsUse Bootstrap's JavaScript components — modal pop-ups, accordions for FAQs, collapsible content, tooltips, toasts and image carousels — using only data attributes.