WebDevSimplified / Introduction-to-Web-Development

831 stars 2.63k forks source link

meta tag #19

Open sarth99016 opened 3 years ago

sarth99016 commented 3 years ago

You should include the following viewport element in all your web pages:

This gives the browser instructions on how to control the page's dimensions and scaling.

The width=device-width part sets the width of the page to follow the screen-width of the device (which will vary depending on the device).

The initial-scale=1.0 part sets the initial zoom level when the page is first loaded by the browser. Hope you will find it useful.