What does <meta name="viewport" content="width=device-width, initial-scale=1"> do?
-
A
Hides the page from search engine results
-
B
Sets the page title shown in the browser tab
-
C
Makes the page scale correctly on mobile screens
Correct answer
-
D
Prevents users from zooming on any device
Correct answer
C. Makes the page scale correctly on mobile screens
17 views
Explanation
Without the viewport meta tag, phones render the page at desktop width and shrink it. It is the foundation of responsive design.
Reference
Asked in: NTS, Web Developer Interviews
Doubts & discussion
Not sure why the answer is C? Ask here and get an explanation.
Ask a doubt about this MCQ