Tree of DesignAll terms A–Z

Viewport

The visible area of a page.

See it on the 3D tree

Going deeper

It is the window onto the page, usually smaller than the whole document, and changes with resizing, rotation, zoom and sometimes on-screen keyboards or collapsing browser bars. Mobile browsers need a viewport meta setting to match layout width to the device. CSS offers units based on viewport dimensions.

Why it matters

You avoid assuming a fixed screen and plan for content that sits below the visible area or behind browser controls.

In practice

A full-height hero hides its button behind a phone's browser toolbar, so you switch to a safer height and test again.

Common mistake

Disabling zoom in the viewport settings, which can stop people with low vision enlarging content.

Connected terms