Key takeaways
- Every layout follows container, then row, then col, and each row has 12 columns.
- Bootstrap is mobile first:
col-md-6applies from the md breakpoint (768px) and up. - Spacing classes follow one pattern, property, side and size, such as
mt-3orpx-5. - Modal, dropdown, collapse and tabs work with
data-bs-*attributes alone; tooltips need one line of JavaScript. - Bootstrap 5 drops jQuery and uses
ms-andme-instead of the oldml-andmr-classes.
About these Bootstrap notes
This page offers Uncodemy's Bootstrap notes as a free PDF. Bootstrap is a free CSS and JavaScript framework that gives ready-made classes for layout, buttons, forms, menus and more, so you build responsive pages by adding class names instead of writing long CSS. The notes follow Bootstrap 5.3, explain each part with a table of classes and a short HTML example, and use simple diagrams for the breakpoints, the 12-column grid and the parts of a card.
Please note: these are original Uncodemy learning notes, not the official Bootstrap documentation. Keep the official docs open for the full list of classes and options.
What's inside the Bootstrap notes
The PDF has 20 pages arranged in 14 numbered sections. Here is what each section covers.
1. Start with Bootstrap
What Bootstrap is, its four parts (grid, components, utilities and JavaScript), and a starter template that loads the Bootstrap 5.3 CSS and JS bundle from a CDN with the viewport meta tag.
2. Containers and breakpoints
container, container-fluid and responsive containers such as container-md, the six breakpoints from xs to xxl with a diagram, and a table of each breakpoint's class infix and container width.
3. The grid system
Container, row and col, the 12-column rule with a diagram, equal and fixed columns, responsive columns such as col-12 col-md-6 col-lg-4, row-cols, gutters, offsets, order, alignment on the row, and nested rows.
4. Typography, colours and backgrounds
Heading and display classes, lead, font weight, alignment and text case classes, the theme colours (primary, secondary, success, danger, warning, info, light and dark) with text and background classes, text-bg-* and dark mode with data-bs-theme.
5. Spacing, sizing and display
The spacing class pattern (margin or padding, side and size from 0 to 5), width and height classes, d-none and d-block, and showing or hiding elements on different screen sizes.
6. Flex utilities
d-flex, direction, justify-content-*, align-items-*, wrap, gap, flex-grow-1 and ms-auto, with examples to centre content on the page and build a simple top bar.
7. Borders, shadows and position
Border, rounded corner, shadow and position classes, fixed-top and sticky-top, and a button with a notification badge placed in the corner.
8. Buttons, badges and alerts
Solid and outline buttons, sizes, full-width and disabled buttons, the close button, badges, and success or danger alerts that can be dismissed.
9. Cards, list groups and images
The parts of a card with a diagram, a single card, a responsive card gallery (1 on phone, 2 on tablet, 3 on laptop), list groups, and img-fluid, img-thumbnail and rounded images.
10. Navbar and navigation
A table of navbar classes, a responsive navbar that collapses into a hamburger button, and tabs, pills, breadcrumb and pagination.
11. Forms
form-control, form-select, form-check, form-text, input groups, floating labels, sizes and validation states, with a sign-up form laid out on the grid.
12. Tables
Base, striped, hover, bordered, dark and small tables, and the table-responsive wrapper for small screens.
13. JavaScript components
data-bs-toggle, data-bs-target, data-bs-dismiss and data-bs-parent, with a modal, a dropdown, a collapse, an accordion, the carousel classes and a tooltip that needs one line of JavaScript.
14. Projects and practice
Seven projects (portfolio page, responsive navbar site, landing page, pricing cards, contact form, admin dashboard and photo gallery with a slider), a common mistakes table and 10 practice questions.
How to use these notes to learn Bootstrap
Bootstrap is about remembering class patterns, and the fastest way to remember them is to use them on a real page.
- Start every practice page from the starter template in section 1.
- Resize the browser or use DevTools device mode to see each breakpoint change the layout.
- Learn the spacing and grid patterns once; most other classes follow the same naming style.
- Rebuild one section of a real website, such as its navbar, cards and footer, with Bootstrap classes only.
A simple three-pass method works well. In the first pass, read one section and type its examples into one practice page. In the second pass, close the notes and build the same part again from memory. In the third pass, a day or two later, answer the related practice questions and build one project from section 14.
Class patterns to remember
- Layout:
containerthenrowthencol-*; columns in a row add up to 12. - Breakpoints: sm 576px, md 768px, lg 992px, xl 1200px, xxl 1400px; a class works from its size and up.
- Spacing:
morp, thent,b,s,e,xory, then a size from 0 to 5 orauto, such asmt-3orpx-5. - Centring:
d-flex justify-content-center align-items-center. - Hide on phones only:
d-none d-md-block. - Card gallery:
row row-cols-1 row-cols-md-2 row-cols-lg-3 g-4.
Common mistakes beginners make
- Leaving out the viewport meta tag.
- Putting
colclasses outside arow, or arowoutside a container. - Adding columns that total more than 12 and wondering why they wrap.
- Using Bootstrap 4 classes such as
ml-3andmr-3instead ofms-3andme-3. - Loading your own
style.cssbefore Bootstrap, so your styles are overridden.
Interview focus: Bootstrap topics asked most
Bootstrap questions come up in front-end, web designer and full stack fresher interviews, often with a small build task.
- What Bootstrap is and why it is called mobile first.
- The 12-column grid with container, row and col, and the breakpoints.
containerversuscontainer-fluid.- The spacing class pattern and flex utilities.
- How components such as a modal or navbar work with data attributes.
Typical questions
- What is Bootstrap? Why is it called mobile first?
- Explain the 12-column grid with container, row and col.
- What are the Bootstrap breakpoints? What does col-md-6 mean?
- What is the difference between container and container-fluid?
- Explain the spacing class pattern. What does px-3 mt-5 do?
- How do you centre a box on the page using flex utilities?
- How does a modal open without writing JavaScript?
- What changed from Bootstrap 4 to Bootstrap 5?
Be ready to build a navbar that collapses on mobile or a card gallery that shows 1 card on phone and 3 on laptop.
A 7-day plan for Bootstrap
- Day 1: Start with Bootstrap, containers and breakpoints. Set up the starter template.
- Day 2: The grid system. Build layouts that change from 1 column on phone to 3 on laptop.
- Day 3: Typography and colours, spacing, sizing and display.
- Day 4: Flex utilities, borders, shadows and position. Build a top bar and a notification badge.
- Day 5: Buttons, badges, alerts, cards, list groups and images. Build the pricing cards project.
- Day 6: Navbar and navigation, forms, tables and JavaScript components. Build a landing page with a navbar, a form and a modal.
- Day 7: answer the 10 practice questions from memory and build the admin dashboard project.
Keep the Bootstrap docs open next to your editor and build one small page every week.
Who these notes are for
- Students who know basic HTML and CSS and want to build responsive pages faster.
- B.Tech, BCA and MCA students making web projects or college websites.
- Learners in a full stack or web design course.
- Freshers revising Bootstrap before front-end or web developer interviews.
Bootstrap sits on top of HTML and CSS. If the box model and flexbox are new to you, read the HTML CSS Notes PDF first so the Bootstrap classes make sense.
Download Bootstrap Notes PDF
Bootstrap Notes PDF: Grid, Components, Utilities
The PDF carries the same content as this page in a clean, print-ready layout, so you can read it offline and keep it for revision.
20 pages · 171 KB · PDF · Updated 5 Nov 2026