preface
As we all know, in the development of mobile front-end, add some WebKit specific HTML5 header tags to help browsers better parse HTML code and better display mobile web front-end pages. This paper sorts out some common information of < meta > tags in HTML5 header. Error, please leave a message to correct, or can leave a message to add, welcome to exchange messages!
- <! — Font encoding — >
- <meta charset=“utf-8” />
- <! — Keyword — >
- <meta name=“keywords” content=“” />
- <! — description — >
- <meta name=“description” content=“” />
- <! — author — >
- <meta name=“author” content=“” />
- <! — set document width, zoom or not — >
- <meta name=“viewport” content=“width=device-width,initial-scale=1.0,user-scalable=no” />
- <! — the latest version of IE or chrome is preferred — >
- <meta http-equiv=“X-UA-Compatible” content=“IE=edge,chrome=1” />
- <! — when 360 reads this tag, it immediately switches to speed mode — >
- <meta name=“renderer” content=“webkit” />
- <! — prohibit Baidu transcoding — >
- <meta http-equiv=“Cache-Control” content=“no-siteapp” />
- <! — UC forced vertical screen — >
- <meta name=“screen-orientation” content=“portrait” />
- <! — QQ forced vertical screen — >
- <meta name=“x5-orientation” content=“portrait” />
- <! — UC force full screen — >
- <meta name=“full-scerrn” content=“yes” />
- <! — QQ forces full screen — >
- <meta name=“x5-fullscreen” content=“ture” />
- <! — QQ application mode — >
- <meta name=“x5-page-mode” content=“app” />
- <! — UC application mode — >
- <meta name=“browsermode” content=“application”>
- <! — window phone lights up without highlight — >
- <meta name=“msapplication-tap-highlight” content=“no” />
- <! — Android devices do not automatically recognize email addresses — >
- <meta name=“format-detection” name=“email=no” />
- <! — IOS device — >
- <! — Title added to home screen — >
- <meta name=“apple-mobile-web-app-title” content=“Title” />
- <! — enable webapp full screen — >
- <meta name=“apple-mobile-web-app-capable” content=“yes” />
- <! — set the background color of the status bar to take effect when webapp mode is enabled — >
- <meta name=“apple-mobile-web-app-status-bar-style” content=“black-translucent/black/default” />
- <! — translucent / Black / default white — >
- <! — do not recognize numbers as phone numbers — >
- <meta name=“format-detection” content=“telephone=no” />
- <! — add ad bar intelligently — >
- <meta name=“apple-itunes-app” content=“app-id=myappstoreID,affiliate-data=myaffiliatedata,app-argument=myurl” />
summary
This article is just a summary of some common information of < meta > tags in HTML5 header. I hope it can be helpful for you to learn or use HTML5. If you have any questions, you can leave a message. Thank you for your support for developer.