viewport meta tag "content" property attributes
Property Description
width -> The width of the virtual viewport of the device. Enter a number (pixels assumed), or the keyword "
height -> The height of the virtual viewport of the device. Enter a number (pixels assumed), or the keyword "
initial-scale -> The initial zoom of the webpage, where a value of 1.0 means no zoom.
minimum-scale -> The minimum level the user is able to zoom out of a webpage, where a value of 1.0 means the user isn't able to at all.
maximum-scale -> The maximum level the user is able to zoom in on a webpage, where a value of 1.0 means the user isn't able to at all.
user-scalable -> Sets whether the user can zoom in and out of a webpage. Set to yes or no.
Property Description
width -> The width of the virtual viewport of the device. Enter a number (pixels assumed), or the keyword "
device-width" to set the viewport to the physical width of the device's screen.height -> The height of the virtual viewport of the device. Enter a number (pixels assumed), or the keyword "
device-height" to set the viewport to the physical height of the device's screen.initial-scale -> The initial zoom of the webpage, where a value of 1.0 means no zoom.
minimum-scale -> The minimum level the user is able to zoom out of a webpage, where a value of 1.0 means the user isn't able to at all.
maximum-scale -> The maximum level the user is able to zoom in on a webpage, where a value of 1.0 means the user isn't able to at all.
user-scalable -> Sets whether the user can zoom in and out of a webpage. Set to yes or no.
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
Comments
Post a Comment