
Every web interface needs the same building blocks: a layout grid that works on phones and desktops, buttons, forms, navigation bars, modals, alerts and tables that look consistent and behave the same in every browser. Writing those from scratch for each project is slow, and the result is rarely as tested as a shared library. Bootstrap packages them into one toolkit, so a team can put a responsive, consistent interface together in hours instead of weeks.
This article explains what Bootstrap is, how its grid, components and utilities work, where it fits, when another approach is better, and how it compares with Tailwind CSS and other options.
What is Bootstrap?
Bootstrap is a free, open-source front-end framework for building responsive, mobile-first websites and web applications. It is written in HTML, CSS and JavaScript, with its styles authored in Sass, and gives you a layout grid, a library of ready-made components and a set of utility classes.
It was created at Twitter by Mark Otto and Jacob Thornton, starting as an internal style guide to make the company's tools consistent. Twitter released it to the public as Twitter Bootstrap on 19 August 2011, and it quickly became one of the most widely used front-end projects on the web. The project later separated from Twitter and continued as an independent open-source project under the Bootstrap name.
Its major versions track how the web itself changed. Bootstrap 4, released on 18 January 2018, moved the source from Less to Sass and rebuilt the grid on Flexbox. Bootstrap 5, released on 5 May 2021, dropped jQuery and support for Internet Explorer. Bootstrap 5.3 added color modes, including a built-in dark mode, and the current release line is 5.3. The code is released under the MIT licence.
How Bootstrap works
A responsive grid. Layouts are built from containers, rows and columns. The grid has twelve columns, and classes such as col-md-6 tell a column how wide to be from a given screen size upwards. A layout that shows three columns on a desktop can stack into one column on a phone without a single media query written by hand.
Components. Navbars, cards, buttons, forms, modals, dropdowns, accordions, alerts, toasts, tooltips and many others come with consistent markup and styles. You copy the documented HTML structure, add the classes, and the component looks and behaves the same everywhere. Interactive components use Bootstrap's own JavaScript, and dropdowns, popovers and tooltips also use the Popper positioning library, which ships in Bootstrap's bundle.
Utility classes. Spacing, colours, display, flexbox alignment, borders and text sizes all have small single-purpose classes, such as mt-3 or d-flex. They handle one-off adjustments without writing custom CSS.
Customisation through Sass. Colours, fonts, spacing, breakpoints and component defaults are Sass variables. Overriding them before compiling produces a version of Bootstrap that matches a brand, and you can import only the parts you need to keep the CSS small. Many settings are also exposed as CSS custom properties for runtime theming.
Key features
- Mobile-first responsive grid with breakpoints for phones, tablets and desktops.
- A large component library covering most of what business interfaces need.
- Utility classes for spacing, layout and typography adjustments.
- No jQuery dependency since Bootstrap 5; the JavaScript is plain JavaScript.
- Color modes, including dark mode, controlled with a
data-bs-themeattribute. - Sass-based theming and selective imports to control the final CSS size.
- Accessibility guidance in the documentation for components such as modals and forms.
- Two ways to install: a CDN link with no build step, or a package manager for full control.
Where Bootstrap is used
- Admin panels and dashboards, where tables, forms and navigation make up most of the screen.
- Internal tools and back-office systems that need to be consistent and usable more than visually unique.
- MVPs and prototypes, to put a working interface in front of users quickly.
- Corporate websites and landing pages built on content management systems and themes.
- Server-rendered applications in frameworks such as ASP.NET, Laravel or Django, where templates use Bootstrap classes directly.
When to choose Bootstrap, and when not to
Choose Bootstrap when:
- Speed and consistency matter more than a unique visual identity.
- The team includes back-end developers who need to build decent screens without a dedicated designer.
- The interface is made mostly of standard patterns: forms, tables, cards and navigation.
- You want a stable, well-documented toolkit that new developers already know.
Look elsewhere when:
- The product has a strong, custom design system. Overriding Bootstrap's defaults can end up as much work as writing the styles yourself; a utility-first framework such as Tailwind CSS fits that better.
- The front end is a React application with its own component library. Libraries such as shadcn/ui give you components written for React rather than classes applied to markup.
- Page weight is critical and you only need a grid and a few styles. Modern CSS3 features such as Grid and Flexbox cover simple layouts without a framework.
- You do not want sites that look like every other Bootstrap site. That needs deliberate theming effort.
Bootstrap and its alternatives
| Option | Approach | Ships components | Best fit |
|---|---|---|---|
| Bootstrap | Component framework with utilities | Yes, with JavaScript | Fast, consistent business interfaces |
| Tailwind CSS | Utility-first CSS | No, you compose them | Custom designs and design systems |
| shadcn/ui | Copy-in React components on Tailwind | Yes, React only | React and Next.js products |
| Bulma | CSS-only component framework | Yes, no JavaScript | Simple sites that bring their own scripts |
| Plain CSS | Grid, Flexbox, custom properties | No | Small sites, full control |
The most common comparison is Bootstrap vs Tailwind CSS. Bootstrap gives you finished components with a recognisable look, and you adjust them with variables and utilities. Tailwind gives you low-level utility classes and no components, so every element is composed from scratch and the design is entirely yours. Bootstrap is faster for standard screens built by generalist teams; Tailwind is more flexible for products with a designer and a design system. Our Tailwind CSS article covers that side in more detail.
How we use Bootstrap at Internative
We use Bootstrap for rapid UI development, MVPs and internal tools, where consistency and speed matter most. Its mature ecosystem lets us deliver reliable interfaces quickly without the overhead of writing and maintaining custom CSS for every screen.
If you are planning an internal tool, an admin panel or an MVP that needs to reach users fast, our web application development team can help you choose the front-end approach that fits it.
Frequently asked questions
Is Bootstrap a framework or a library?
Bootstrap is usually called a front-end framework because it provides a whole system: a grid, components, utilities, JavaScript behaviour and conventions for structuring markup. In practice you use it like a library of CSS classes and scripts that you add to your own HTML.
Is Bootstrap different from CSS?
Yes. CSS is the language browsers use to style pages. Bootstrap is a collection of CSS, written in Sass, plus JavaScript, that someone has already written and tested. Using Bootstrap means applying its classes in your HTML instead of writing every style rule yourself, and you can still add your own CSS on top.
Is Bootstrap outdated?
No. Bootstrap is still maintained, the 5.x line removed jQuery and added features such as color modes, and it remains widely used for admin panels, internal tools and server-rendered applications. For highly custom designs, many teams now prefer utility-first CSS such as Tailwind, but that is a different trade-off rather than a sign that Bootstrap is obsolete.
How do you use Bootstrap?
The quickest way is to add Bootstrap's CSS and JavaScript bundle to a page through a CDN link, then use its documented classes and markup, for example a container, rows and columns, and a navbar. For production projects, teams usually install it with a package manager and compile it with Sass, so they can customise variables and import only the parts they use.
Is Bootstrap free?
Yes. Bootstrap's code is released under the MIT licence and can be used in commercial projects at no cost.
Keep reading
The articles that follow this one.



