Horje
How to Setting The Viewport

To create a responsive website, add the following tag to all your web pages:

 

More Example given here:

What is The HTML Viewport in Head

How to use HTML Viewport in Head


Example of Setting The Viewport

This example does not really do anything, other than showing you how to add the viewport meta element. Viewport makes your page responsive devices friendly.
index.html
Example: HTML
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
</head>
<body>

<h2>Setting the Viewport</h2>
<p>This example does not really do anything, other than showing you how to add the viewport meta element.</p>

</body>
</html>

Output should be:

Example of Setting The Viewport





Category:
Web Tutorial
Sub Category:
HTML Responsive
Uploaded by:
Admin


Read Article
https://develop.horje.com/learn/1434/reference