What are the main differences between Bootstrap 4 and Bootstrap 5?

  • jQuery is removed, and the JavaScript is plain JavaScript.
  • Internet Explorer is not supported.
  • data-toggle became data-bs-toggle (all data attributes have bs).
  • Left and right became start and end: ml-2 to ms-2, text-left to text-start, float-right to float-end.
  • New breakpoint xxl (1400px), a new offcanvas component, RTL support, and in 5.3 color modes (dark mode).
  • Removed: .form-group, .btn-block, .jumbotron, .media, .card-deck, input-group prepend and append.

See the full list in Migrating from Bootstrap 4 to 5.


Learn more about the similar topics:
Tutorials
Bootstrap Introduction
Bootstrap Get Started
Bootstrap Setup and Installation
Migrating from Bootstrap 4 to Bootstrap 5
Bootstrap Cheat Sheet
Exercises & Assignments
No Content Found.
Interview Questions & Answers
What is Bootstrap?
What are the advantages of Bootstrap?
Who developed Bootstrap and when?
How do you add Bootstrap to a web page?
What is the difference between bootstrap.bundle.js and bootstrap.js?
Is jQuery required for Bootstrap 5?
What are the main differences between Bootstrap 4 and Bootstrap 5?