Welcome to %s forums

<No. 1 Community for developers, by developers/>

Login Register

What is Responsive Meta Tag and how to use it?

For general web development questions using HTML and CSS.
Post Reply
admin
Site Admin
Posts: 45

What is Responsive Meta Tag and how to use it?

Post by admin » Thu Aug 22, 2019 2:40 pm

I tend to use this:

Code: Select all

<meta name="viewport" content="width=device-width">
Although I see this is recommended a lot:

Code: Select all

<meta name="viewport" content="width=device-width, initial-scale=1">
This means that the browser will (probably) render the width of the page at the width of its own screen. So if that screen is 320px wide, the browser window will be 320px wide, rather than way zoomed out and showing 960px (or whatever that device does by default, in lieu of a responsive meta tag).

Post Reply