Responsive Web Design - The Viewport

What is The Viewport?

The viewport is the user's visible area of a web page.
The viewport varies with the device and will be smaller on a mobile phone than on a computer screen.

Setting The Viewport

HTML5 introduced a method to let web designers take control over the viewport, through the <meta> tag.
You should include the following <meta> viewport element in all your web pages:
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta> viewport element gives the browser instructions on how to control the page's dimensions and scaling.
The partwidth=device-width sets the width of the page to follow the screen-width of the device (which will vary depending on the device).
The initial-scale=1.0 part sets the initial zoom level when the page is first loaded by the browser

2 comments:

  1. Very useful article. Thank you for sharing this informative content. Here are some useful links
    ecommerce website development company
    PHP development company

    ReplyDelete
  2. Wholesale hookah: Metier Wholesale offers premium quality hookah & shisha online in Germany, Netherland, Spain & Europe at the best price!
    wholesale hookah, shisha shop, smoking pipes

    ReplyDelete

Digtal Marketing Study Classes

https://cognitiveclass.ai/learn/data-science/............data science ibm .................................................................