Horje

Full Example of HTML Viewport in Head

Here is an example of a web page without the viewport meta tag, and the same web page with the viewport meta tag:
index.html
Example: HTML
<!DOCTYPE html>
<html>
<head>
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta charset="UTF-8">
  <meta name="description" content="Free Web tutorials">
  <meta name="keywords" content="HTML, CSS, JavaScript">
  <meta name="author" content="John Doe">
</head>
<body>

<p>All meta information goes inside the head section.</p>

</body>
</html>



Single Articles
Full Example of HTML Viewport in HeadHTML - The Head Element
Example with ViewportHTML - The Head Element
Example without ViewportHTML - The Head Element


Related Articles
What is HTML - The Head Element HTML - The Head Element
How to create The HTML <head> Element HTML - The Head Element
How to create The HTML <title> Element in <Head> HTML - The Head Element
How to create The HTML <style> Element in <head> HTML - The Head Element
How to create The HTML <link> Element in <head> HTML - The Head Element
How to create The HTML <meta> Element in Head HTML - The Head Element
What is The HTML Viewport in Head HTML - The Head Element
How to use HTML Viewport in Head HTML - The Head Element
How to create The HTML <script> Element in head HTML - The Head Element
How to create The HTML <base> Element in head HTML - The Head Element

Type:
Html
Category:
Web Tutorial
Sub Category:
HTML - The Head Element
Uploaded by:
Admin



Share on: