What are row and col classes in Bootstrap?

.row creates a horizontal group of columns (a flex container with negative margins and gutters). .col creates equal width columns, .col-6 takes 6 of 12 columns, and .col-md-4 takes 4 of 12 from the md breakpoint. Always put columns inside a row, and the row inside a container. See Grid System.


Learn more about the similar topics:
Tutorials
Bootstrap Containers
Bootstrap Grid System
Bootstrap Grid: Gutters, Offset, Order and Nesting
Bootstrap Layout Example: Landing Page
Exercises & Assignments
Create a responsive three column layout with Bootstrap
Create a responsive grid of six cards
Interview Questions & Answers
What is the Bootstrap grid system?
What are the breakpoints in Bootstrap 5?
What is the difference between container and container-fluid?
What are row and col classes in Bootstrap?
What is the viewport meta tag and why is it needed for Bootstrap?
What is the mobile first approach in Bootstrap?
What are gutters in the Bootstrap grid?