HTML & CSS · Junior · Question 26 of 75

Why do you need <meta name="viewport" content="width=device-width, initial-scale=1">?

Explanation

Without this tag, mobile browsers render the page as if on a wide screen and scale it down - mobile media queries don't fire and text is tiny. Disabling zoom (user-scalable=no) is bad for accessibility. The tag doesn't affect loading speed.

Further reading

Problem with a question

HTML & CSS · Junior · question 26

Test yourself

Take the HTML & CSS · Junior quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz