DIV CSS 佈局教程網

 DIV+CSS佈局教程網 >> 網頁腳本 >> HTML基礎知識 >> HTML5教程 >> HTML5各種頭部meta標簽的功能(推薦)
HTML5各種頭部meta標簽的功能(推薦)
編輯:HTML5教程     

<!DOCTYPE html>  H5標准聲明,使用 HTML5 doctype,不區分大小寫

<head lang=”en”> 標准的 lang 屬性寫法

<meta charset=’utf-8′>    聲明文檔使用的字符編碼

<meta http-equiv=”X-UA-Compatible” content=”IE=edge,chrome=1″/>   優先使用 IE 最新版本和 Chrome

<meta name=”description” content=”不超過150個字符”/>       頁面描述

<meta name=”keywords” content=””/>      頁面關鍵詞

<meta name=”author” content=”name, [email protected]”/>    網頁作者

<meta name=”robots” content=”index,follow”/>      搜索引擎抓取

<meta name=”viewport” content=”initial-scale=1, maximum-scale=3, minimum-scale=1, user-scalable=no”> 為移動設備添加 viewport

<meta name=”apple-mobile-web-app-title” content=”標題”> iOS 設備 begin

<meta name=”apple-mobile-web-app-capable” content=”yes”/>  添加到主屏後的標題(iOS 6 新增)

是否啟用 WebApp 全屏模式,刪除蘋果默認的工具欄和菜單欄

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

添加智能 App 廣告條 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”/>  設置蘋果工具欄顏色

<meta name=”renderer” content=”webkit”>  啟用360浏覽器的極速模式(webkit)

<meta http-equiv=”X-UA-Compatible” content=”IE=edge”>     避免IE使用兼容模式

<meta http-equiv=”Cache-Control” content=”no-siteapp” />    不讓百度轉碼

<meta name=”HandheldFriendly” content=”true”>     針對手持設備優化,主要是針對一些老的不識別viewport的浏覽器,比如黑莓

<meta name=”MobileOptimized” content=”320″>   微軟的老式浏覽器

<meta name=”screen-orientation” content=”portrait”>   uc強制豎屏

<meta name=”x5-orientation” content=”portrait”>    QQ強制豎屏

<meta name=”full-screen” content=”yes”>              UC強制全屏

<meta name=”x5-fullscreen” content=”true”>       QQ強制全屏

<meta name=”browsermode” content=”application”>   UC應用模式

<meta name=”x5-page-mode” content=”app”>    QQ應用模式

<meta name=”msapplication-tap-highlight” content=”no”>    windows phone 點擊無高光

設置頁面不緩存

<meta http-equiv=”pragma” content=”no-cache”>

<meta http-equiv=”cache-control” content=”no-cache”>

<meta http-equiv=”expires” content=”0″>

以上所述是小編給大家介紹的HTML5各種頭部meta標簽的功能(推薦),希望對大家有所幫助,如果大家有任何疑問請給我留言,小編會及時回復大家的。在此也非常感謝大家對網站的支持!

XML學習教程| jQuery入門知識| AJAX入門| Dreamweaver教程| Fireworks入門知識| SEO技巧| SEO優化集錦|
Copyright © DIV+CSS佈局教程網 All Rights Reserved