Search
 
SCRIPT & CODE EXAMPLE
 

HTML

html viewport meta tag

<meta name="viewport" content= "width=device-width, initial-scale=1.0">
Comment

Viewports meta tags

They are viewport meta tags, and is most applicable on mobile browsers.

width=device-width
This means, we are telling to the browser “my website adapts to your device width”.

initial-scale
This defines the scale of the website, This parameter sets the initial zoom level, which means 1 CSS pixel is equal to 1 viewport pixel. This parameter help when you're changing orientation, or preventing default zooming. Without this parameter, responsive site won't work.

maximum-scale
Maximum-scale defines the maximum zoom. When you access the website, top priority is maximum-scale=1, and it won’t allow the user to zoom.

minimum-scale
Minimum-scale defines the minimum zoom. This works the same as above, but it defines the minimum scale. This is useful, when maximum-scale is large, and you want to set minimum-scale.

user-scalable
User-scalable assigned to 1.0 means the website is allowing the user to zoom in or zoom out.

But if you assign it to user-scalable=no, it means the website is not allowing the user to zoom in or zoom out.
Comment

PREVIOUS NEXT
Code Example
Html :: Multibyte string input conversion in PHP is active and must be disabled 
Html :: tfoot renders after thead and before tbody 
Html :: align right tailwind 
Html :: BootStrap 4.6,BootStrap 5.2 CDN Css & JS & Bundle 
Html :: turn of blur html canvas 
Html :: how to make dropdown in html 
Html :: border radius rect svg 
Html :: if else handlebars 
Html :: html escape characters 
Html :: load content of html without reloading python django 
Html :: textarea autosize angular 
Html :: input cursor color 
Html :: how to add a link in image 
Html :: open new tab href 
Html :: hidden label html 
Html :: bootstrap colored link 
Html :: bootstrap 4 selectpicker 
Html :: mailto subject 
Html :: html fieldset color background 
Html :: swiper js pagination with arrows 
Html :: twig format currency 
Html :: add delay to hrefs 
Html :: onclick a tag 
Html :: write html inside component angular 
Html :: figcaption html 
Html :: mysql date time to html input datetime-local value 
Html :: placeholder in input field MVC 
Html :: bootstrap select 
Html :: 0 
Html :: how to make new line in html paragraph 
ADD CONTENT
Topic
Content
Source link
Name
7+8 =