meta標籤

留着自己用(轉載的)

<meta charset="utf-8"> <!-- 設置文檔字符編碼 -->
<meta http-equiv="x-ua-compatible" content="ie=edge">
<!-- 告訴IE瀏覽器,IE8/9及以後的版本都會以最高版本IE來渲染頁面。 -->
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<!-- 指定頁面初始縮放比例。-->
<!-- 上述3個meta標籤須放在head標籤最前面;其它head內容放在其後面,如link標籤-->

<!-- 允許控制加載資源 -->
<meta http-equiv="Content-Security-Policy" content="default-src 'self'">
<!-- 儘可能早的放在文檔 --><!-- 只適用於下面這個標籤的內容 -->
<!-- 使用web應用程序的名稱(當網站作爲一個應用程序的時候)-->
<meta name="application-name" content="Application Name">

<!-- 頁面的簡短描述(限150個字符)--><!-- 在某些情況下這個描述作爲搜索結果中所示的代碼片段的一部分。-->
<meta name="description" content="A description of the page">
<!-- 控制搜索引擎爬行和索引的行爲 -->
<meta name="robots" content="index,follow,noodp">
<!-- 所有搜索引擎 -->
<meta name="googlebot" content="index,follow">

<!-- 谷歌 --><!-- 告訴谷歌搜索框不顯示鏈接 -->
<meta name="google" content="nositelinkssearchbox">
<!-- 告訴谷歌不要翻譯這個頁面 -->
<meta name="google" content="notranslate">
<!-- Google網站管理員工具的特定元標記,覈實對谷歌搜索控制檯所有權 -->
<meta name="google-site-verification" content="verification_token">
<!-- 說明用什麼軟件構建生成的網站,(例如,WordPress,Dreamweaver) -->
<meta name="generator" content="program">
<!-- 簡短描述你的網站的主題 -->
<meta name="subject" content="your website's subject"><!-- 很短(10個詞以內)描述。主要學術論文 -->
<meta name="abstract" content=""><!-- 完整的域名或網址 -->
<meta name="url" content="https://example.com/">
<meta name="directory" content="submission">
<!-- 對當前頁面一個等級衡量,告訴蜘蛛當前頁面在整個網站中的權重到底是多少。General是一般頁面,Mature是比較成熟的頁面,Restricted代表受限制的。 -->

<meta name="rating" content="General">

<!-- 隱藏發送請求時請求頭表示來源的referrer字段。 -->

<meta name="referrer" content="no-referrer">

<!-- 禁用自動檢測和格式的電話號碼 -->

<meta name="format-detection" content="telephone=no">

<!-- 通過設置“off”,完全退出DNS隊列 -->

<meta http-equiv="x-dns-prefetch-control" content="off">

<!-- 在客戶端存儲 cookie,web 瀏覽器的客戶端識別-->

<meta http-equiv="set-cookie" content="name=value; expires=date; path=url">

<!-- 指定要顯示在一個特定框架中的頁面 -->

<meta http-equiv="Window-Target" content="_value">

<!-- 地理標籤 -->

<meta name="ICBM" content="latitude, longitude"><meta name="geo.position" content="latitude;longitude"><meta name="geo.region" content="country[-state]">

<!-- 國家代碼 (ISO 3166-1): 強制性, 州代碼 (ISO 3166-2): 可選; 如 content="US" / content="US-NY" -->

<meta name="geo.placename" content="city/town"><!-- 如 content="New York City" -->



作者:lxf_李曉鳳
鏈接:https://www.jianshu.com/p/e62deb9337cd
來源:簡書
著作權歸作者所有。商業轉載請聯繫作者獲得授權,非商業轉載請註明出處。

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章