Responsive web design
We will see one way in this article.
Technique
Using the <meta> tag.
The name attribute of the meta tag should be viewport
and value should be content="width=device-width, initial-size=1.0" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
The consequences of the above code snippet is that the user width will be automically scaled up or down as per the device size and the user cannot pinch the screen on smartphone or tablets.
Comments
Post a Comment