Skip to main content
HTML Output Prediction Hard +35 XP

Meta Viewport

What does this meta tag do on mobile?

HTMLRead-only
<meta name="viewport" content="width=device-width, initial-scale=1.0">

What is the output?

Show answer and explanation

Answer: Sets page width to device width for responsive layout

Without this tag, mobile browsers render pages at desktop width then shrink them. This tag enables proper responsive design.

Hint: This is the foundation of responsive web design.

What this challenge tests

Output Prediction in HTML: meta, responsive, mobile.

Related challenges