HTML5 header meta tag functions (recommended), html5meta

Source: Internet
Author: User
Tags home screen

HTML5 header meta tag functions (recommended), html5meta

<! DOCTYPE html> H5 standard declaration, using HTML5 doctype, case-insensitive

<Head lang = "en"> standard lang attribute writing

<Meta charset = 'utf-8'> declares the character encoding used by the document.

<Meta http-equiv = "X-UA-Compatible" content = "IE = edge, chrome = 1"/> the latest version of IE and Chrome are preferred.

<Meta name = "description" content = "cannot exceed 150 characters"/> page description

<Meta name = "keywords" content = ""/> page keywords

<Meta name = "author" content = "name, email@gmail.com"/> webpage author

<Meta name = "robots" content = "index, follow"/> Search Engine crawling

<Meta name = "viewport" content = "initial-scale = 1, maximum-scale = 3, minimum-scale = 1, user-scalable = no"> Add viewport for mobile devices

<Meta name = "apple-mobile-web-app-title" content = "title"> iOS device begin

<Meta name = "apple-mobile-web-app-capable" content = "yes"/> title after being added to the home screen (added in iOS 6)

Whether to enable WebApp full screen mode and delete the default toolbar and menu bar of Apple

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

Add Smart App advertisement bar 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 the color of the apple Toolbar

<Meta name = "renderer" content = "webkit"> enable the speed mode of the 360 browser (webkit)

<Meta http-equiv = "X-UA-Compatible" content = "IE = edge"> avoid IE compatibility

<Meta http-equiv = "Cache-Control" content = "no-siteapp"/> disable Baidu Transcoding

<Meta name = "HandheldFriendly" content = "true"> optimized for handheld devices, mainly for browsers that do not recognize viewport, such as BlackBerry

<Meta name = "MobileOptimized" content = "320"> Microsoft's old-fashioned Browser

<Meta name = "screen-orientation" content = "portrait"> uc enforces portrait

<Meta name = "x5-orientation" content = "portrait"> QQ force portrait Screen

<Meta name = "full-screen" content = "yes"> UC enforces full screen

<Meta name = "x5-fullscreen" content = "true"> QQ forced full screen

<Meta name = "browsermode" content = "application"> UC application Mode

<Meta name = "x5-page-mode" content = "app"> QQ Application Model

<Meta name = "msapplication-tap-highlight" content = "no"> windows phone clicks without highlights

Set page not to cache

<Meta http-equiv = "pragma" content = "no-cache">

<Meta http-equiv = "cache-control" content = "no-cache">

<Meta http-equiv = "expires" content = "0">

The above is the HTML5 header meta tag function (recommended) introduced by xiaobian. I hope it will be helpful to you. If you have any questions, please leave a message for me, the editor will reply to you in a timely manner. Thank you very much for your support for the help House website!

Related Article

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.