Skip to content
engineering workbench.by StudyPort Academy
All glossary terms

GLOSSARY · A WORD, UNPACKED

viewport

the visible area of the page, which the viewport meta element and media queries both refer to.

A little more detail

On a phone, omitting the viewport meta element often causes a layout about 980 CSS pixels wide that is then scaled down. width=device-width, initial-scale=1 lays the page out at the device width. Media queries are evaluated against that layout viewport. The device toolbar simulates it. It is not a full phone.

See it in practice

These lessons pair the idea with examples you can change and run.