Bootstrap tutorial

Build responsive, good-looking pages fast with ready-made components

About this tutorial

Bootstrap is the world's most popular CSS framework. Instead of writing every style yourself, you add ready-made classes to your HTML and get a responsive grid, buttons, cards, menus, forms and pop-ups that work on every screen size.

This beginner class uses Bootstrap 5. You should know basic HTML and CSS first. Every lesson has examples you can open in the CodeLab Playground, an exercise and a quiz, and you finish by building a complete landing page.

Lessons

Getting started

  1. What is Bootstrap?What a CSS framework is, adding Bootstrap to a page from a CDN, and your first styled page. Free 12 min
  2. Containers and the gridLay out pages in rows and up to 12 columns with container, row and col. Free 14 min

Layout

  1. Responsive columnsChange the layout at each screen size with breakpoints such as col-md-6 and col-lg-4. Locked 14 min
  2. Spacing and utility classesAdd margin and padding, colours, borders, shadows and flexbox layouts without writing CSS. Locked 11 min
  3. Typography and imagesStyle headings and text, and make images responsive, rounded and nicely laid out. Locked 10 min

Components

  1. Buttons, badges and alertsStyle buttons in every colour and size, label things with badges, and show messages with alerts. Locked 13 min
  2. CardsBuild flexible content boxes with images, titles, text, buttons, headers and footers, in responsive grids. Locked 15 min
  3. Navigation barsBuild a responsive navbar with a brand, links and a menu button that collapses on phones. Locked 16 min
  4. FormsStyle inputs, selects, checkboxes and input groups, lay forms out in columns and show validation messages. Locked 20 min
  5. Tables and list groupsStyle data tables with stripes, hover and borders, make them scroll on phones, and use list groups. Locked 12 min
  6. Modals, accordions and carouselsAdd interactive components that work with data-bs attributes and no JavaScript of your own. Locked 19 min
  7. Icons and customising BootstrapAdd Bootstrap Icons, switch on dark mode, and change Bootstrap's colours with your own CSS. Locked 13 min

Project and review

  1. Project: a responsive landing pageCombine the grid, navbar, cards, forms and utilities into a complete one-page site for a youth event. Locked 17 min
  2. Bootstrap final quizFifteen questions covering the whole Bootstrap beginner class. Score yourself to finish the course. Locked 6 min
Hi there! đź‘‹ Have a question about the courses or joining the class? Ask me.