時(shí)間:2023-05-09 23:09:01 | 來(lái)源:網(wǎng)站運(yùn)營(yíng)
時(shí)間:2023-05-09 23:09:01 來(lái)源:網(wǎng)站運(yùn)營(yíng)
最全Html標(biāo)簽Meta介紹,全面總結(jié),學(xué)HTML這一篇夠了:今天查Html手冊(cè)時(shí),又有了新的發(fā)現(xiàn)。也就這機(jī)會(huì),好好總結(jié)下HTML中Meta的使用。<meta name="keywords" content="HTML,ASP,PHP,SQL">頁(yè)面描述,每個(gè)網(wǎng)頁(yè)都應(yīng)有一個(gè)不超過(guò) 150 個(gè)字符且能準(zhǔn)確反映網(wǎng)頁(yè)內(nèi)容的描述標(biāo)簽
<meta name="description" content="your description">搜索引擎索引方式,robotterms是一組使用逗號(hào)(,)分割的值,通常有如下幾種取值:none,noindex,nofollow,all,index和follow。確保正確使用nofollow和noindex屬性值。
<meta name="robots" content="index,follow" />頁(yè)面重定向和刷新:content內(nèi)的數(shù)字代表時(shí)間(秒),既多少時(shí)間后刷新。如果加url,則會(huì)重定向到指定網(wǎng)頁(yè)(搜索引擎能夠自動(dòng)檢測(cè),也很容易被引擎視作誤導(dǎo)而受到懲罰)。
<!--
all:文件將被檢索,且頁(yè)面上的鏈接可以被查詢;
none:文件將不被檢索,且頁(yè)面上的鏈接不可以被查詢;
index:文件將被檢索;
follow:頁(yè)面上的鏈接可以被查詢;
noindex:文件將不被檢索;
nofollow:頁(yè)面上的鏈接不可以被查詢。
-->
<meta http-equiv="Refresh" content="5;url=http://www.w3school.com.cn" /><!--5秒鐘后跳轉(zhuǎn)到http://www.w3school.com.cn-->
<meta http-equiv="Refresh" content="5;" /><!--每5秒鐘刷新一下頁(yè)面-->
<meta name="viewport" content="width=device-width, initial-scale=1.0,maximum-scale=1.0, user-scalable=no"/>各瀏覽器平臺(tái)
<!-- `width=device-width` 會(huì)導(dǎo)致 iPhone 5 添加到主屏后以 WebApp 全屏模式打開(kāi)頁(yè)面時(shí)出現(xiàn)黑邊 -->
<!-- 優(yōu)先使用最新的ie版本 -->Google Chrome
<meta http-equiv="x-ua-compatible" content="ie=edge">
<!-- 是否開(kāi)啟cleartype顯示效果 -->
<meta http-equiv="cleartype" content="on">
<meta name="skype_toolbar" content="skype_toolbar_parser_compatible">
<!-- 關(guān)于X-UA-Compatible -->
<meta http-equiv="X-UA-Compatible" content="IE=6" ><!-- 使用IE6 -->
<meta http-equiv="X-UA-Compatible" content="IE=7" ><!-- 使用IE7 -->
<meta http-equiv="X-UA-Compatible" content="IE=8" ><!-- 使用IE8 -->
<!-- Pinned Site -->
<!-- IE 10 / Windows 8 -->
<meta name="msapplication-TileImage" content="pinned-tile-144.png">
<meta name="msapplication-TileColor" content="#009900">
<!-- IE 11 / Windows 9.1 -->
<meta name="msapplication-config" content="ieconfig.xml">
<!-- 優(yōu)先使用最新的chrome版本 -->360瀏覽器
<meta http-equiv="X-UA-Compatible" content="chrome=1" />
<!-- 禁止自動(dòng)翻譯 -->
<meta name="google" value="notranslate">
<!-- 選擇使用的瀏覽器解析內(nèi)核 -->UC手機(jī)瀏覽器
<meta name="renderer" content="webkit|ie-comp|ie-stand">
<!-- 將屏幕鎖定在特定的方向 -->QQ手機(jī)瀏覽器
<meta name="screen-orientation" content="landscape/portrait">
<!-- 全屏顯示頁(yè)面 -->
<meta name="full-screen" content="yes">
<!-- 強(qiáng)制圖片顯示,即使是"text mode" -->
<meta name="imagemode" content="force">
<!-- 應(yīng)用模式,默認(rèn)將全屏,禁止長(zhǎng)按菜單,禁止手勢(shì),標(biāo)準(zhǔn)排版,強(qiáng)制圖片顯示。 -->
<meta name="browsermode" content="application">
<!-- 禁止夜間模式顯示 -->
<meta name="nightmode" content="disable">
<!-- 使用適屏模式顯示 -->
<meta name="layoutmode" content="fitscreen">
<!-- 當(dāng)頁(yè)面有太多文字時(shí)禁止縮放 -->
<meta name="wap-font-scale" content="no">
<!-- 鎖定屏幕在特定方向 -->Apple iOS
<meta name="x5-orientation" content="landscape/portrait">
<!-- 全屏顯示 -->
<meta name="x5-fullscreen" content="true">
<!-- 頁(yè)面將以應(yīng)用模式顯示 -->
<meta name="x5-page-mode" content="app">
<!-- Smart App Banner -->Google Android
<meta name="apple-itunes-app" content="app-id=APP_ID,affiliate-data=AFFILIATE_ID,app-argument=SOME_TEXT">
<!-- 禁止自動(dòng)探測(cè)并格式化手機(jī)號(hào)碼 -->
<meta name="format-detection" content="telephone=no">
<!-- Add to Home Screen添加到主屏 -->
<!-- 是否啟用 WebApp 全屏模式 -->
<meta name="apple-mobile-web-app-capable" content="yes">
<!-- 設(shè)置狀態(tài)欄的背景顏色,只有在 “apple-mobile-web-app-capable” content=”yes” 時(shí)生效 -->
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<!-- 添加到主屏后的標(biāo)題 -->
<meta name="apple-mobile-web-app-title" content="App Title">
<meta name="theme-color" content="#E64545">其它常用的meta
<!-- 添加到主屏 -->
<meta name="mobile-web-app-capable" content="yes">
<!-- More info: https://developer.chrome.com/multidevice/android/installtohomescreen -->
App Links
<!-- iOS -->
<meta property="al:ios:url" content="applinks://docs">
<meta property="al:ios:app_store_id" content="12345">
<meta property="al:ios:app_name" content="App Links">
<!-- Android -->
<meta property="al:android:url" content="applinks://docs">
<meta property="al:android:app_name" content="App Links">
<meta property="al:android:package" content="org.applinks">
<!-- Web Fallback -->
<meta property="al:web:url" content="http://applinks.org/documentation">
<!-- More info: http://applinks.org/documentation/ -->
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no" />
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-status-bar-style" content="black" />
<meta name="format-detection"content="telephone=no, email=no" />
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no" />
<meta name="apple-mobile-web-app-capable" content="yes" /><!-- 刪除蘋果默認(rèn)的工具欄和菜單欄 -->
<meta name="apple-mobile-web-app-status-bar-style" content="black" /><!-- 設(shè)置蘋果工具欄顏色 -->
<meta name="format-detection" content="telphone=no, email=no" /><!-- 忽略頁(yè)面中的數(shù)字識(shí)別為電話,忽略email識(shí)別 -->
<!-- 啟用360瀏覽器的極速模式(webkit) -->
<meta name="renderer" content="webkit">
<!-- 避免IE使用兼容模式 -->
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<!-- 針對(duì)手持設(shè)備優(yōu)化,主要是針對(duì)一些老的不識(shí)別viewport的瀏覽器,比如黑莓 -->
<meta name="HandheldFriendly" content="true">
<!-- 微軟的老式瀏覽器 -->
<meta name="MobileOptimized" content="320">
<!-- uc強(qiáng)制豎屏 -->
<meta name="screen-orientation" content="portrait">
<!-- QQ強(qiáng)制豎屏 -->
<meta name="x5-orientation" content="portrait">
<!-- UC強(qiáng)制全屏 -->
<meta name="full-screen" content="yes">
<!-- QQ強(qiáng)制全屏 -->
<meta name="x5-fullscreen" content="true">
<!-- UC應(yīng)用模式 -->
<meta name="browsermode" content="application">
<!-- QQ應(yīng)用模式 -->
<meta name="x5-page-mode" content="app">
<!-- windows phone 點(diǎn)擊無(wú)高光 -->
<meta name="msapplication-tap-highlight" content="no">
<!-- 適應(yīng)移動(dòng)端end -->
<meta charset="utf-8">禁止緩存:禁止瀏覽器從本地機(jī)的緩存中調(diào)閱頁(yè)面內(nèi)容,網(wǎng)頁(yè)不保存在緩存中,每次訪問(wèn)都刷新頁(yè)面。這樣設(shè)定,訪問(wèn)者將無(wú)法脫機(jī)瀏覽
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta http-equiv="Pragma" content="no-cache">網(wǎng)頁(yè)過(guò)期:指定網(wǎng)頁(yè)在緩存中的過(guò)期時(shí)間,一旦網(wǎng)頁(yè)過(guò)期,必須到服務(wù)器上重新調(diào)閱。注意:必須使用GMT的時(shí)間格式,或直接設(shè)為0(數(shù)字表示多少時(shí)間后過(guò)期)
<Meta http-equiv="Expires" Content="Wed, 26 Feb 1997 08:21:57 GMT">Cookie設(shè)置:注意:必須使用GMT的時(shí)間格式
<Meta http-equiv="Set-Cookie" Content="cookievalue=xxx; expires=Wednesday,21-Oct-98 16:14:21 GMT; path=/">顯示窗口的設(shè)定:強(qiáng)制頁(yè)面在當(dāng)前窗口以獨(dú)立頁(yè)面顯示,這個(gè)屬性是用來(lái)防止別人在框架里調(diào)用你的頁(yè)面。Content選項(xiàng):_blank、_top、_self、_parent.
<Meta http-equiv="Widow-target" Content="_top">進(jìn)入與退出:這個(gè)是頁(yè)面被載入和調(diào)出時(shí)的一些特效。這個(gè)有好多特效,可以查詢Page-Exit去了解更多。
<Meta http-equiv="Page-Exit" Content="blendTrans(Duration=0.5)">
<meta http-equiv="Content-Security-Policy" content="script-src 'self'">
關(guān)鍵詞:標(biāo)簽,總結(jié)
客戶&案例
營(yíng)銷資訊
關(guān)于我們
客戶&案例
營(yíng)銷資訊
關(guān)于我們
微信公眾號(hào)
版權(quán)所有? 億企邦 1997-2025 保留一切法律許可權(quán)利。