Skip to content
Learn Netverks

Lesson

Step 94/134 70% through track

responsive-rwd-viewport

RWD Viewport

Last reviewed May 28, 2026 Content v20260528
Track mode
iframe_html
Means
HTML preview sandbox
Reading
~1 min
Level
intermediate

This lesson

This lesson teaches RWD Viewport—the ideas, syntax, and habits you need before moving on in CSS.

Traffic is predominantly mobile—layouts that only work on desktop fail users and metrics.

You will apply RWD Viewport in contexts like: All browser UIs, component libraries, marketing sites, and many native apps that reuse web views.

Read the lesson, edit HTML/CSS in the playground, press Run to preview, then answer the lesson MCQs.

Toward the end of the track—use it to consolidate patterns before the capstone or summary lessons.

Viewport strategy aligns CSS pixel assumptions with device rendering contexts.

Key rule

Use proper viewport meta in HTML and test zoom/reflow scenarios.

Pitfall

Missing viewport meta causes mobile browsers to emulate wider desktop layout, breaking responsive assumptions.

Important interview questions and answers

  1. Q: Why viewport meta matters for CSS?
    A: It defines how CSS pixels map to device width on mobile.
  2. Q: Should you disable user zoom?
    A: No, it harms accessibility.
  3. Q: What to check after viewport config?
    A: Text scaling, tap target size, and horizontal overflow.

Tip: Design mobile-first: base rules, then min-width media queries.

Interview tip Lesson completion confidence

Can you explain this lesson in 30 seconds without reading notes?

Not saved yet.

Playground

Runs in your browser in a sandboxed frame. Backend runners appear when this track’s profile allows them.

Check yourself

Multiple choice — immediate feedback.

Discussion

Past discussion is visible to everyone. Only logged-in users can post comments and replies.

Starter discussion topics

  • What part of this lesson needs a second read?
  • What would you try differently in a real project?

Sign up or log in to post comments and sync lesson progress across devices.

No discussion yet. Be the first to ask a question.

Jump