H5 various head meta tags function Daquan

Source: Internet
Author: User

<! DOCTYPE html> H5 Standard declaration, using HTML5 DOCTYPE, case insensitive

<meta charset= ' utf-8′> declares the character encoding used by the document

<meta http-equiv= "x-ua-compatible" content= "ie=edge,chrome=1″/> priority to use the latest version of IE and Chrome

<meta name= "description" content= "no more than 150 characters"/> page description

<meta name= "keywords" content= ""/> Page keywords

<meta name= "Author" content= "name, [email protected]"/> Web page author

<meta name= "Robots" content= "Index,follow"/> Search engine Crawl

<meta name= "viewport" content= "initial-scale=1, maximum-scale=3, minimum-scale=1, User-scalable=no" > Add for Mobile devices Viewport

<meta name= "Apple-mobile-web-app-title" content= "title" > IOS device begin

<meta name= "apple-mobile-web-app-capable" content= "yes"/> the title after adding to the main screen (IOS 6 new)

Whether to enable WEBAPP full screen mode, remove Apple's default toolbar and menu bar

<meta name= "Apple-itunes-app" content= "App-id=myappstoreid, Affiliate-data=myaffiliatedata, App-argument=myURL" >

Add Smart App ad strip Smart app Banner (IOS 6+ Safari)

<meta name= "Apple-mobile-web-app-status-bar-style" content= "Black"/>

<meta name= "format-detection" content= "Telphone=no, Email=no"/> Set Apple toolbar color

<meta name= "renderer" content= "WebKit" > enable 360 browser Speed mode (WebKit)

<meta http-equiv= "x-ua-compatible" content= "Ie=edge" > Avoid IE using compatibility mode

<meta http-equiv= "Cache-control" content= "No-siteapp"/> Do not let Baidu transcoding

<meta name= "handheldfriendly" content= "true" > optimized for handheld devices, mainly for some older browsers that do not recognize viewport, such as BlackBerry

<meta name= "mobileoptimized" content= "320″> Microsoft's old browser

<meta name= "Screen-orientation" content= "Portrait" > UC Force vertical screen

<meta name= "X5-orientation" content= "Portrait" > QQ forced vertical screen

<meta name= "Full-screen" content= "yes" > UC Force full Screen

<meta name= "X5-fullscreen" content= "true" > QQ mandatory fullscreen

<meta name= "Browsermode" content= "Application" > UC Application Mode

<meta name= "X5-page-mode" content= "app" > QQ app Mode

<meta name= "Msapplication-tap-highlight" content= "no" > Windows Phone click No Highlight

Settings page does not cache

<meta http-equiv= "Pragma" content= "No-cache" >

<meta http-equiv= "Cache-control" content= "No-cache" >

<meta http-equiv= "Expires" content= "0″>

Record a little every day and make a little progress every day.

H5 various head meta tags function Daquan

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.