Wednesday, July 24, 2024
HomeCSShtml - Why is my particular viewport width meta tag being ignored...

html – Why is my particular viewport width meta tag being ignored by each desktop and cell browsers?


How use the meta tag viewport to set the scale?

The tag seems to be ignored no matter worth is entered.

I feel I am incorrect as a result of this code is ignored by each desktop and cell browsers

<meta identify="viewport" content material="width=920, initial-scale=1">

Is there something I missed?
Tips on how to set the viewport to a selected width?

Instance code

<!DOCTYPE html>
<html>

<head>

    <meta identify="viewport" content material="width=920, initial-scale=1">

    <script>
        window.onload = operate () ;
    </script>
    <fashion>
        html, physique {padding: 0px; margin: 0px;}
    </fashion>
</head>

<physique>

    <h1 id="data"></h1>
    <div id="display"></div>

    <div fashion="width: 1920px; peak: 100px; background-color: yellow;">1920 x 100</div>
    <br>
    <img src="https://i.imgur.com/h1Vr7E4.png" alt="" srcset="">

</physique>

</html>

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular

Recent Comments