Home >Web Front-end >HTML Tutorial >Disable the browser from scaling the HTML code of a web page_html/css_WEB-ITnose
HTML code that prohibits browsers from scaling web pages
html5 allows users to scale pages by default. If we need to disable scaling, we need to set user-scalabel=0. The specific code is as follows:
<meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0;" name="viewport" />
Note: meta is in the head.