# Viewport

*noun*

say it: **“VYOO-port”** **/ˈvjuˌpɔrt/**

The part of the browser window where the page shows. The units vw and vh measure it: 1vw is 1% of its width and 1vh is 1% of its height.

## What is the **viewport**?

The **viewport** is the visible area of the page in the browser window or phone screen. The `vw` and `vh` units are percentages of it.

```css
.hero { height: 100vh; }   /* fills the screen */
```

## In a sentence

- “I made the game's start screen 100vh tall so it filled the whole **viewport** before any scrolling.”

Level: Apprentice · [More CSS terms at this level](https://www.ask-codey.com/glossary?category=css&level=2)

Updated: November 9, 2026

Source: https://www.ask-codey.com/glossary/viewport
