Ask coding questions

← Back to all posts
What does "<meta name="viewport" content="width=device-width">" do?
RixTheTyrunt

Hello, in my HTML code, I found a code like this: <meta name="viewport" content="width=device-width">! What does it do?

Answered by InvisibleOne [earned 5 cycles]
View Answer
Voters
RixTheTyrunt
Comments
hotnewtop
InvisibleOne

https://www.w3schools.com/css/css_rwd_viewport.asp

It sets the size and scale of the viewport that the user is going to look at the page through... or at least I'm pretty sure that's what it does.

RixTheTyrunt