Tsallaka zuwa abun ciki
Justice Tech School

The Viewport Meta Tag

Bootstrap is mobile first. The viewport meta tag tells phones to use the real screen width, so media queries work.

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

Exercise

Fill the attribute.

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

Quiz Test

Why is the viewport tag needed?

These free lessons are for learning. Join a full course for projects, mentor feedback and a verified certificate.