What is the viewport meta tag and why is it needed for Bootstrap?

<meta name="viewport" content="width=device-width, initial-scale=1">

Without it, mobile browsers pretend to have a wide screen (about 980px) and shrink the page, and the Bootstrap breakpoints do not work as expected. See Bootstrap Get Started.


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?