# Viewport

> The part of a web page you can see on the screen right now.

**Field:** Design  
**Category:** Web Design  
**Also known as:** Browser Viewport, Visible Area

## Think of it like

It is like a window in a wall. You only see the part of the garden the window shows.

## Definition

The viewport is the part of a web page you can see on the screen right now. On a phone it is small and tall; on a desktop it is wide. A phone needs one line of HTML, the viewport meta tag, to show a page at its real width. Without it, the phone shows a tiny zoomed-out desktop page.

## Example

Jack opens a site with no viewport tag on his phone. The page is tiny, and he has to pinch to read it.

## Example code

```html
<meta name="viewport" content="width=device-width, initial-scale=1">
```

This line tells a phone to lay out the page at the phone's own width.

## Why it matters

Each layout that fits the screen needs it. Without the tag, phones skip the breakpoints.

## Common mistake

Blocking zoom with maximum-scale=1. People who need bigger text can no longer zoom in.

## Three principles

- **What you see now.** The visible area.
- **One line of HTML.** The viewport tag.
- **Never block zoom.** Let people pinch.

## Related terms

- [Responsive Web Design](https://learn.benibix.com/term/design/responsive-web-design)
- [Above the Fold](https://learn.benibix.com/term/design/above-the-fold)
- [Text Resize](https://learn.benibix.com/term/design/text-resize)
- [Viewport Meta Tag](https://learn.benibix.com/term/development/viewport-meta-tag)

## Told apart from

- [Viewport vs Viewport Meta Tag](https://learn.benibix.com/compare/viewport-vs-viewport-meta-tag): People think the viewport and the viewport meta tag are the same thing, and they are not. The viewport is the part of the page you can see on the screen. The viewport meta tag is one line of HTML that tells a phone how wide that view should be. The tag sets the viewport; it is not the viewport.

---

Source: https://learn.benibix.com/term/design/viewport
Author: Behnia Zarei (a developer in Vienna, Austria, who builds and teaches data, AI and business intelligence at BENIBIX)
Publisher: BENIBIX Learn (https://learn.benibix.com/)
Last updated: 2026-11-17
Licence: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Quote freely with attribution.
