Viewport specific uses are:
When using the META tag, write properties in the content, separated by commas
| Property name |
Notes |
| Width |
Sets the width of the layout viewport as a positive integer, using the string "Width-device" to indicate the device width |
| Initial-scale |
Sets the initial zoom value of the page, which is a number that can be taken with decimals |
| Minimum-scale |
Allows the user's minimum zoom value to be a number that can be taken with decimals |
| Maximum-scale |
Allows the user's maximum zoom value, which is a number that can be taken with decimals |
| Height |
Sets the height of the layout viewport, which is not important to us and is seldom used |
| User-scalable |
Whether the user is allowed to scale, the value is "no" or "yes", no is not allowed, yes means allow |
| – |
– |
| target-densitydpi |
The value can be a number or high-dpi, medium-dpi, low-dpi, device-dpi one of several strings
|
HTML5 in Meta name= "viewport"