![]() |
The viewport is the user's visible area of a web page. It varies with the device - it will be smaller on a mobile phone than on a computer screen.
You should include the following <meta name="viewport" content="width=device-width, initial-scale=1.0"> This gives the browser instructions on how to control the page's dimensions and scaling.
The
The Here is an example of a web page without the viewport meta tag, and the same web page with the viewport meta tag: |
<meta name="viewport" content="width=device-width, initial-scale=1.0">
Category
: |
Web Tutorial |
Sub Category
: |
HTML - The Head Element |
Uploaded by
: |
Admin |
Read Article https://horje.com/learn/1434/reference