Head tags and meta on the mobile side

Source: Internet
Author: User

Use HTML5 doctype, case insensitive

<!DOCTYPE html>

More standard lang attribute notation Http://zhi.hu/XyIa

<html lang="zh-cmn-Hans">
Meta

Declaring the character encoding used by a document

<meta charset=‘utf-8‘>

Use the latest version of IE and Chrome first

<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"/>

Page description

<meta name="description" content="不超过150个字符"/>

Page keywords

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

Web page author

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

Search Engine Crawl

<meta name="robots" content="index,follow"/>

Add viewport to a mobile device

<meta name="viewport" content="initial-scale=1, maximum-scale=3, minimum-scale=1, user-scalable=no"> <!-- `width=device-width` 会导致 iPhone 5 添加到主屏后以 WebApp 全屏模式打开页面时出现黑边 http://bigc.at/ios-webapp-viewport-meta.orz -->
IOS devices

Title added to the home screen (IOS 6 new)

<meta name="apple-mobile-web-app-title" content="标题">

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

<meta name="apple-mobile-web-app-capable" content="yes"/>

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

<meta name="apple-itunes-app" content="app-id=myAppStoreID, affiliate-data=myAffiliateData, app-argument=myURL"> 

Set the Apple toolbar color

<meta name="apple-mobile-web-app-status-bar-style" content="black"/>

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

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

Enable 360 browser's fast mode (WebKit)

<meta name="renderer" content="webkit">

Avoid IE using compatibility mode

<meta http-equiv="X-UA-Compatible" content="IE=edge">

Optimized for handheld devices, mainly for older browsers that do not recognize viewport, such as BlackBerry

<meta name="HandheldFriendly" content="true">

Microsoft's old-fashioned browser

<meta name="MobileOptimized" content="320">

UC Force 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-screen" content="yes">

QQ Mandatory Fullscreen

<meta name="x5-fullscreen" content="true">

UC Application Mode

<meta name="browsermode" content="application">

QQ Application Mode

Windows Phone clicks No highlight

<meta name="msapplication-tap-highlight" content="no">
IOS icons

IPhone and ITouch, default 57x57 pixels, must have

<link rel="apple-touch-icon-precomposed" href="/apple-touch-icon-57x57-precomposed.png"/>

Retina IPhone and retina itouch,114x114 pixels, can not, but recommended to have

<link rel="apple-touch-icon-precomposed" sizes="114x114" href="/apple-touch-icon-114x114-precomposed.png"/>

Retina ipad,144x144 pixels, can not, but recommended to have

<link rel="apple-touch-icon-precomposed" sizes="144x144" href="/apple-touch-icon-144x144-precomposed.png"/>
IOS splash Screen

IPad Vertical screen 768 x 1004 (Standard resolution)

<link rel="apple-touch-startup-image" sizes="768x1004" href="/splash-screen-768x1004.png"/>

IPad Vertical Screen 1536x2008 (Retina)

<link rel="apple-touch-startup-image" sizes="1536x2008" href="/splash-screen-1536x2008.png"/>

IPad Horizontal screen 1024x748 (standard resolution)

<link rel="apple-touch-startup-image" sizes="1024x748" href="/Default-Portrait-1024x748.png"/>

IPad Horizontal screen 2048x1496 (Retina)

<link rel="apple-touch-startup-image" sizes="2048x1496" href="/splash-screen-2048x1496.png"/>

Iphone/ipod Touch Vertical Screen 320x480 (standard resolution)

<link rel="apple-touch-startup-image" href="/splash-screen-320x480.png"/>

Iphone/ipod Touch Vertical Screen 640x960 (Retina)

<link rel="apple-touch-startup-image" sizes="640x960" href="/splash-screen-640x960.png"/>

IPhone 5/ipod Touch 5 Vertical screen 640x1136 (Retina)

<link rel="apple-touch-startup-image" sizes="640x1136" href="/splash-screen-640x1136.png"/>
IOS Device End

Windows 8 Tile Color

<meta name="msapplication-TileColor" content="#000"/>

Windows 8 Tile icon

<meta name="msapplication-TileImage" content="icon.png"/>

Add an RSS Subscription

<link rel="alternate" type="application/rss+xml" title="RSS" href="/rss.xml"/>

Add Favicon icon

<link rel="shortcut icon" type="image/ico" href="/favicon.ico"/>

Title

Select AllCopyput it in your notes .
<title>标题</title>

Head tags and meta on the mobile side

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.