What is a viewport in HTML?

The viewport is the user-visible area of a web page. Setting the <meta name="viewport"> helps make sites responsive on mobile devices.

Example:

<meta name="viewport" content="width=device-width, initial-scale=1.0">