Sometimes, we want to disable zoom on a mobile web page with HTML.
In this article, we’ll look at how to disable zoom on a mobile web page with HTML.
How to disable zoom on a mobile web page with HTML?
To disable zoom on a mobile web page with HTML, we can add a meta tag.
For instance, we write
<meta
name="viewport"
content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0"
/>
to add a meta tag that has the content
attribute with initial-scale=1.0, maximum-scale=1.0
intoi the head element to disable zoom on the page on mobile web browsers.
Conclusion
To disable zoom on a mobile web page with HTML, we can add a meta tag.