Responsive Viewport Meta Tag
<meta name="viewport" content="width=device-width, initial-scale=1.0"> |
Attributes:
- width: CSS pixel width or
device-width
. - height: Analogous to width (rarely used).
- initial-scale: Scale at first load.
- maximum-scale / minimum-scale: User zoom bounds.
- user-scalable: Allow manual zoom (yes/no or 0/1 in older implementations).
Keep initial-scale=1
to avoid unexpected zoom; avoid disabling zoom for accessibility.
All articles on this blog are licensed under CC BY-NC-SA 4.0 unless otherwise stated.
Comments