I do not understand meta name="viewport"
. I am using the example offered by w3Schools and I am not able to understand what it is for, what exactly it does. I have read the explanation and I understand perfectly that it says that it serves to configure the width of the page to the width of the device width=device-width
, and the level of zoom when the page is loaded for the first time initial-scale=1.0
, but I can not see its effect. I mean ...
Using, as I say, the example offered w3Schools , I see in your code, which is made with meta name="viewport"
, which in addition to this meta tag have included a CSS code that is what really generates the effect that the viewport is supposed to do. The CSS code is:
<style>
img {
max-width:100%;
height:auto;
}
</style>
If we comment on the line max-width:100%
we lose the effect that the viewport is supposed to perform. For this reason I do not quite understand what the viewport really is for.