Viewport meta tag

The line that tells phones to show the page at its real width instead of a zoomed-out desktop view.

Domain
Languages
Type
Term
Source
General
Languages
HTML, CSS

In plain English

Without it, responsive CSS and media queries don't work properly on phones.

Example

Without the viewport tag, the phone showed a tiny zoomed-out desktop page.

In code

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

Learn more

Related terms

Added 2026-11-30 · Last reviewed 2026-11-30