2011-07-20 18:50

HTML meta 彙整

  1. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> 
  2. <!--網頁文件的編碼格式--> 
  3.  
  4. <meta http-equiv="Content-Language" content="zh-TW" /> 
  5. <!--網頁內容的語言--> 
  6.  
  7. <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" /> 
  8. <meta http-equiv="X-UA-Compatible" content="IE=9, IE=8, chrome=1" /> 
  9. <!--指定 IE 頁面呈現所使用的渲染引擎--> 
  10.  
  11. <meta http-equiv="X-Frame-Options" content="deny" /> 
  12. <!--限制頁面中Frame的使用方式--> 
  13. <!--   sameorigin – 只允許來自同一個網域的頁面嵌入--> 
  14. <!--   deny – 防止任何頁面的嵌入--> 
  15.  
  16. <meta http-equiv="Date" content="Wed, 16 Feb 2011 22:34:13 GMT" /> 
  17. <!--網頁內容的建立日期--> 
  18.  
  19. <meta http-equiv="Last-Modified" content="Mon, 03 Jan 2011 17:45:57 GMT" /> 
  20. <!--網頁內容的修改日期--> 
  21.  
  22. <meta http-equiv="Location" content="URL=http://www.w3schools.com" /> 
  23. <!--宣告此網頁的絕對制式資源位址--> 
  24.  
  25. <meta http-equiv="Set-Cookie" content="w3scookie=myContent;expires=Fri, 30 Dec 2011 12:00:00 GMT; path=http://www.w3schools.com" /> 
  26. <!--設定cookie,如果網頁過期,存盤的cookie將被刪除,需要注意的也是必須使用GMT時間格式--> 
  27.  
  28. <meta http-equiv="Windows-Target" content="_top" /> 
  29. <!--強制頁面在目前的視窗中以獨立頁面顯示,可以防止網頁被別人當作一個frame頁嵌入--> 
  30.  
  31. <meta http-equiv="Refresh" content="300" /> 
  32. <meta http-equiv="Refresh" content="10;URL=http://www.w3schools.com" /> 
  33. <!--定時讓網頁在指定的時間內重新整理,或是跳轉到指定頁面--> 
  34.  
  35. <meta http-equiv="Expires" content="Mon,12 May 2001 00:20:00 GMT" /> 
  36. <!--設定網頁內容暫存的到期時間--> 
  37.  
  38. <meta http-equiv="Pragma" content="no-cache" /> 
  39. <!--禁止瀏覽器從近端機的緩存中調閱頁面內容(僅 IE 適用)--> 
  40.  
  41. <meta http-equiv="cache-control" content="no-cache" /> 
  42. <!--瀏覽器的緩存控制--> 
  43. <!--   public - 可放在公用的緩存區--> 
  44. <!--   private - 只能放在私人的緩存區--> 
  45. <!--   no-cache - 不許存放在緩存區--> 
  46. <!--   no-store - 可以暫時存放緩存區,但是不許長存-->  
  47.  
  48.  
  49.  
  50.  
  51. <meta name="KeyWords" lang="EN" content="key1,key2,key3" /> 
  52. <meta name="KeyWords" lang="zh-TW" content="關鍵字1,關鍵字2,關鍵字3" /> 
  53. <!--網頁內容的關鍵字--> 
  54.  
  55. <meta name="Abstract" content="內容摘要" /> 
  56. <!--網頁內容的摘要--> 
  57.  
  58. <meta name="Description" content="內容描述" /> 
  59. <!--網頁內容的描述--> 
  60.  
  61. <meta name="Generator" content="Aptana 2" /> 
  62. <!--製作網頁的工具名稱--> 
  63.  
  64. <meta name="Author" content="作者名稱" /> 
  65. <!--網頁製作者的名稱--> 
  66.  
  67. <meta name="Reply-To" content="abc@mail.com" /> 
  68. <!--聯繫人的 Email--> 
  69.  
  70. <meta name="Website" content="http://www.website.com/" /> 
  71. <!--網頁製作者的網站--> 
  72.  
  73. <meta name="owner" content="http://www.website.com/" /> 
  74. <!--定義所有者的網頁或網站--> 
  75.  
  76. <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no" /> 
  77. <!--viewport的作用是告訴瀏覽器,目前裝置有多寬(或多高),以便在縮放時有個基準--> 
  78. <!--   width - viewport的寬度(Number或 device-width)--> 
  79. <!--   height - viewport的高度(Number或 device-height)--> 
  80. <!--   initial-scale - 初始的縮放比例(0.25~5)--> 
  81. <!--   minimum-scale - 允許用戶縮放到的最小比例(0.25~5)--> 
  82. <!--   maximum-scale - 允許用戶縮放到的最大比例(0.25~5)--> 
  83. <!--   user-scalable - 用戶是否可以手動縮放(1/0或yes/no)--> 
  84.  
  85. <meta name="Robots" content="noodp,noydir" /> 
  86. <!--搜尋引擎檢索設定--> 
  87. <!--   all - 內容將被檢索,且頁面上的連結可以被查詢--> 
  88. <!--   none - 內容將不被檢索,且頁面上的連結不可以被查詢--> 
  89. <!--   index - 內容將被檢索--> 
  90. <!--   follow - 頁面上的連結可以被查詢--> 
  91. <!--   noindex - 內容將不被檢索,但頁面上的連結可以被查詢--> 
  92. <!--   nofollow - 內容將不被檢索,頁面上的連結可以被查詢--> 
  93.  
  94. <meta name="Googlebot" content="nofollow" /> 
  95. <!--針對 Google bot 的robots--> 
  96.  
  97. <meta name="baiduspider" content="nofollow" /> 
  98. <!--針對百度 bot 的robots--> 
  99.  
  100. <meta name="classification" content="Computer" /> 
  101. <!--告知搜索引擎網站(頁)應被列到哪個目錄下--> 
  102.  
  103. <meta name="copyright" content="2011© W3Schools.com" /> 
  104. <meta name="doc-rights" content="2011© W3Schools.com" /> 
  105. <!--網頁的版權聲明--> 
  106.  
  107. <meta name="Distribution" content="Taiwan" /> 
  108. <!--描述網站(頁)的發佈地--> 
  109. <!--   web - 為全面互聯網--> 
  110. <!--   intranet - 只為內部網路--> 
  111. <!--   global - 全球性網頁--> 
  112. <!--   local - 本地端網頁--> 
  113. <!--   Intern use - 測試網頁--> 
  114.  
  115. <meta name="doc-class" content="Completed" /> 
  116. <!--指定文件的完成狀態--> 
  117. <!--   Completed - 已完成--> 
  118. <!--   Draft - 草稿--> 
  119. <!--   Living Document - 動態文件--> 
  120. <!--   Published - 發佈--> 
  121.  
  122. <meta name="DownloadOptions" content="noopen" /> 
  123. <!--控制下載對話匡上的按鈕顯示--> 
  124. <!--   noopen - 隱藏[開啟]的按鈕--> 
  125. <!--   nosave - 隱藏[儲存]的按鈕--> 
  126.  
  127. <meta name="name" content="My document" /> 
  128. <!--指定文件名稱--> 
  129.  
  130. <meta name="rating" content="" /> 
  131. <!--網頁內容分級--> 
  132. <!--   14 years - 14歲以上--> 
  133. <!--   general - 普通--> 
  134. <!--   mature - 成年人--> 
  135. <!--   restricted - 限制--> 
  136. <!--   safe for kids - 孩童--> 
  137.  
  138. <meta name="resource-type" content="document" /> 
  139. <!--告知這個網頁的形式是文件--> 
  140.  
  141. <meta name="revisit-after" content="7 days"> 
  142. <!--搜尋引擎檢索器多久之後來造訪一次--> 
  143.  
  144. <meta name="其他" content="" /> 
  145. <!--你可以定義自己 meta 名稱與描述--> 
  146.  
  147.  
  148.  
  149.  
  150. <!--[針對 IE 的設定]--> 
  151.  
  152. <meta name="MSSmartTagsPreventParsing" content="yes"/> 
  153. <!--防止微軟頁面編輯軟體在頁面上自動添加標籤--> 
  154.  
  155. <meta http-equiv="imagetoolbar"  content="no"/> 
  156. <!--關閉IE的圖片管理工具列--> 
  157.  
  158. <meta http-equiv="MSThemeCompatible" content="no" /> 
  159. <!--關閉XP的藍色立體按鈕系統顯示樣式--> 
  160.  
  161. <meta http-equiv="Pics-label" content=""> 
  162. <!--網頁等級升等職稱,在IE的internet選項中有一項內容設定,可以防止瀏覽一些受限制的網站,而網站的限制層級就是通過meta內容來設定的--> 
  163.  
  164. <meta http-equiv="Page-Enter" content="revealTrans(duration=10,transtion=50)"> 
  165. <meta http-equiv="Page-Exit" content="revealTrans(duration=20,transtion=6)"> 
  166. <!--設定IE進入和離開頁面時的特殊效果--> 

0 回應: