FrontendDeveloper.in

HTML question detail

What is the purpose of the `meta viewport` tag?

The viewport tag controls responsive scaling on mobile devices.

Typical usage:

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

This ensures the layout width maps to device width and avoids zoomed-out mobile rendering.

Back to all HTML questions
Get LinkedIn Premium at Rs 399