The META tag for getting started with mobile web

Source: Internet
Author: User

Meta Tag Learning Summary:

The META tag's Name property syntax format: < span>

  1.viewport

First, we should have an understanding of viewport:

In layman's parlance, the viewport on a mobile device is the area of the device's screen that can be used to display our pages, and, in particular, the portion of the area that the browser (or possibly an app WebView) uses to display the page. But viewport is not limited to the size of the viewable area of the browser, it may be larger than the viewable area of the browser, or it may be smaller than the viewable area of the browser.

The next step is the meaning of the parameter and parameter values:

<meta name= "viewport" content= "Width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, User-scalable=no ">

    Initial-scale-Initial zoom ratio
Minimum-scale-Minimum scale to allow the user to zoom
Maximum-scale-Maximum scale to which the user is allowed to zoom
User-scalable-whether the user can manually scale

2.format-detection

  <meta name="format-detection" content="telephone=no, email=no" />

Ignore the number on the page to identify as the phone, ignoring email identification

3.IOS private Two properties: Apple-mobile-web-app-capable and Apple-mobile-web-app-status-bar-style

< Meta name= "apple-mobile-web-app-capable" content=" yes "/> Span class= "Hljs-tag" >

  <meta name="apple-mobile-web-app-status-bar-style" content="black" />The effect is to change the color of the top state bar in WebApp mode. Default (white) to Black (black) and black-translucent (Gray translucent)

4.<meta name= "Apple-touch-fullscreen" content= "yes" >

  "Add to Home Screen", full screen display

5.<meta name= "Theme-color" content= "#91D4DA" >

  Controls the color of the tab, such as:

  

Original link: http://caibaojian.com/mobile-meta.html
Code from http://caibaojian.com/mobile-meta.htmlname=content="Telphone=no, Email=no"/> 

  

  

The META tag for getting started with mobile web

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.