Tags
HTML
Asked 2 years ago
17 May 2022
Views 660
jqueryLearner

jqueryLearner posted

What is use of initial scale, user-scalable, minimum-scale, maximum-scale attribute in meta tag?



<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=1.0, minimum-scale=1.0, maximum-scale=1.0">


What is use of initial scale, user-scalable, minimum-scale, maximum-scale attribute in meta tag?
chirag

chirag
answered May 17 '22 00:00

<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=1.0, minimum-scale=1.0, maximum-scale=1.0">

width= device-width
by this attribute, browser set website to loading device width

initial-scale
initial-scale=1.0
initial-scale is a scale of the website, initial-scale sets the initial zoom level

maximum-scale
maximum-scale=1.0
Maximum-scale defines the maximum zoom.

minimum-scale
minimum-scale=1.0
Minimum-scale defines the minimum zoom.

user-scalable
user-scalable=1.0
User-scalable defines how much a user can zoom in or zoom out.

Post Answer