日期:2014-05-16  浏览次数:20687 次

HTML META鐨勭敤閫旓紝鍔熻兘鍜屽睘鎬?杞?
鍘熸枃鍦板潃锛?a target="_blank" href="http://blog.csdn.net/yixiaoqingyuz/article/details/4329975">http://blog.csdn.net/yixiaoqingyuz/article/details/4329975
  META鏈潵鍙槸HTML浠g爜涓殑涓€涓爣绛捐€屽凡,涓嶈繃鏌愬ぉ,杩欎釜涓栫晫鍑虹幇浜嗕竴绉嶅彨鍋氭悳绱㈠紩鎿庣殑涓滆タ,META鏍囩渚跨獊鐒惰浜轰滑閲嶈璧锋潵浜?骞朵笖META杩樺鍔犱簡绫讳技浜嶳obots杩欑灞炴€с€?
鍐欒繖绡囨枃绔犱箣鍓?鎴戜篃鍦ㄨ€冭檻,绌剁珶杩欑瘒浠嬬粛META鐨勬枃绔?搴旇褰掑睘浜嶩TML涓撴爮,杩樻槸SEO涓撴爮?褰撴偍鐪嬪埌杩欑瘒鏂囩珷鐨勬椂鍊?寰堟槑鏄?瀹冭鎴戝綊灞炲埌HTML涓撴爮涓簡銆備箣鎵€浠ヨ繖涔堝仛,鍙槸鍥犱负鎴戣涓?META浠庢湰璐ㄤ笂鏉ヨ,鍜孲EO鏄病浠€涔堝叧绯荤殑,鍗充娇浠栧彧鏄负浜嗙粰鎼滅储寮曟搸鐪嬬殑,浣嗘悳绱㈠紩鎿庝篃涓嶅彧鏄湅META銆?

META鐨勫睘鎬ф湁涓変釜:name,http-equiv鍜宑ontent
鍏堣Name鍜孋ontent:
META鐨凬AME灞炴€у氨璇磋鏄庡綋鍓嶇殑META鏍囩鏄粈涔堢被鍨?浠ヤ究浜庢悳绱㈠紩鎿庢姄鍙?绱㈠紩缃戦〉銆傜浉搴旂殑Content灏辨槸鍛婅瘔鎼滅储寮曟搸鐩稿叧鐨勪俊鎭€?
鎵撲釜姣旀柟<meta name="keywords" content="meta" />杩欒浠g爜鐨勬剰鎬濆氨鏄:杩欎釜缃戦〉鐨勫叧閿瘝鏄痬eta鈥?

Name鐨勫父鐢ㄥ彇鍊兼湁涓嬮潰鍑犵
1銆並eywords:鍏抽敭瀛?鍗冲憡璇夋悳绱㈠紩鎿?杩欎釜缃戦〉鐨勪富棰樻槸浠€涔堛€傜ず渚?<meta name="Keywords" Content="鍏抽敭瀛?鍏抽敭瀛?,鍏抽敭瀛?,鍏抽敭瀛?,...,..." />
姣忎釜鍏抽敭瀛椾箣闂?搴旇鐢ㄧ敤鑻辨枃鐨勯€楀彿,鈥濆垎闅斿紑銆?
褰撴暟涓狹ETA鍏冪礌鎻愪緵鏂囨。璇█浠庡睘淇℃伅鏃?鎼滅储寮曟搸浼氫娇鐢╨ang鐗规€ф潵杩囨护骞堕€氳繃鐢ㄦ埛鐨勮瑷€浼樺厛鍙傜収鏉ユ樉绀烘悳绱㈢粨鏋溿€備緥濡?
<meta name="Kyewords" Lang="EN" Content="vacation,greece,sunshine">
<meta name="Kyewords" Lang="FR" Content="vacances,gr猫:ce,soleil">

2銆丏escription:绠€浠?鍗冲憡璇夋悳绱㈠紩鎿?杩欎釜缃戦〉鐨勫ぇ鑷村唴瀹广€傚氨濂藉儚Keywords鏄墜鏈?Description鍐嶈缁嗚涓€涓嬫墜鏈虹殑澶т綋鍔熻兘銆佷紭鍔跨瓑绛夈€?
绀轰緥:<meta name="Description" Content="杩欎釜缃戦〉璁茶堪浜嗙殑META鐢ㄦ硶...">

3銆丷obots:绾补鍐欑粰鎼滅储寮曟搸鐪嬬殑,鍥犱负Keywords鍜孌escription,浜虹被杩樺彲浠ョ湅鎳?鑰孯obots鏄潪涓撲笟浜哄+鎵€鏃犳硶鐞嗚В鐨勩€?
褰搉ame涓篟obots鏃?Content鍙€夊弬鏁版湁
index:褰撳墠椤甸潰鍙互琚姄鍙?
follow:琚綋鍓嶉〉闈㈠唴鎵€閾炬帴鐨勯〉闈㈠彲浠ユ姄鍙?
noindex:褰撳墠椤甸潰涓嶅彲浠ヨ鎶撳彇
nofollow:琚綋鍓嶉〉闈㈠唴鎵€閾炬帴鐨勯〉闈笉鍙互鎶撳彇
鐢变簬Content鐨勫唴瀹瑰彲浠ユ槸鍙岄€夌殑,渚嬪CONTENT="INDEX,FOLLOW",鎵€浠ヤ笂杩拌繖鍥涗釜鍙傛暟,鍏卞彲浠ョ粍鎴?绉嶄笉鍚岀殑鍙岄€夌粨鏋溿€?
鍏朵腑
<META NAME="Robots" CONTENT="index,follow" />鍙互鍐欐垚<META NAME="Robots" CONTENT="all" />
<META NAME="Robots" CONTENT="noindex,nofollow" />鍙互鍐欐垚<META NAME="Robots" CONTENT="none" />

4銆丄uthor:浣滆€?鍗冲憡璇夋悳绱㈠紩鎿?杩欎釜椤甸潰鐨勪綔鑰呮槸璋?涓€鑸偅绉嶆枃绔犳€ц川鐨勯〉闈?杩欎釜灞炴€ц搴旂敤寰楁瘮杈冨銆?
绀轰緥<meta name="Author" Content="czBin,11year@Gmail.com">

5銆丆opyright:鐗堟潈,鍛婅瘔鎼滅储寮曟搸,杩欎釜椤甸潰鐨勭増鏉冩槸灞炰簬璋佺殑銆?
绀轰緥:<meta name="Copyright" Content="鐗堟潈淇℃伅">

6銆丟enerator:鍒朵綔杞欢,闅鹃亾鎼滅储寮曟搸杩炶繖涓篃闇€瑕佺煡閬?鐢‵rontPage鍜孌reamweaver鍒朵綔鍑虹殑椤甸潰,鎶撳彇鏂瑰紡涓嶅悓鍚?
绀轰緥:<meta name="Generator" Content="PCDATA|FrontPage|">

7銆乺evisit-after:鏇存柊鏃堕棿,鍗冲憡璇夋悳绱㈠紩鎿?杩欎釜椤甸潰澶氶暱鏃堕棿浼氭洿鏂?鍒版椂鍊?闇€瑕佹潵閲嶆柊鎶撳彇绀轰緥:<META name="revisit-after" CONTENT="2 days">
鍐嶈HTTP-EQUIV:
META鐨凥TTP-EQUIV灞炴€?鍏朵綔鐢ㄧ被浼间簬HTTP澶村崗璁?瀹冧細鍛婅瘔娴忚鍣ㄤ竴浜涘叧浜庡瓧绗﹁瀹?椤甸潰鍒锋柊,cookie,鍜岀紦瀛樼瓑绛夌浉鍏充俊鎭€?

甯哥敤鐨凥TTP-EQUIV鍙栧€兼湁濡備笅11绉?
1:Content-Type:澹版槑椤甸潰鎵€閫傜敤鐨勭殑瀛楃闆?浠ュ強椤甸潰鏂囨。灞炴€с€傜ず渚?
<meta http-equiv="Content-Type" Content="text/html; Charset=gb2312">
鍛婅瘔娴忚鍣?璇ラ〉闈负HTML绫绘枃妗?骞朵笖,閫傜敤gb2312(涓枃)浣滀负榛樿瀛楃銆?

2銆丷efresh:璁剧疆椤甸潰鍒锋柊鎴栬嚜鍔ㄨ烦杞殑鏃堕棿
绀轰緥:
<meta http-equiv="Refresh" Content="60">
Content="60"鐨勬剰鎬濇槸璇?60绉掑悗,椤甸潰鍒锋柊
<meta http-equiv="Refresh" Content="10; Url=http://www.isinwin.cn">
Content="10 鐨勬剰鎬濇槸璇?10绉掑悗,缃戦〉灏嗚嚜鍔ㄨ烦杞€?

3銆丒xpires:璁惧畾缃戦〉鐨勮繃鏈熸椂闂?褰撶綉椤佃繃鏈熷悗,蹇呴』閲嶆柊璇诲彇椤甸潰淇℃伅銆?
绀轰緥:
<meta http-equiv="Expires" Content="Fri, 15 Jun 2007 01:13:13 GMT">
<meta http-equiv="Expires" Content="0">
鏃堕棿鏍煎紡蹇呴』涓篏MT鏍囧噯鏃堕棿,Content璁剧疆涓?鍒欎唬琛ㄨ缃戦〉姘镐笉杩囨湡銆?

4銆丳ragma:绂佹娴忚鍣ㄧ紦瀛樼綉椤点€傜ず渚?
<meta http-equiv="Pragma" Content="No-cach">
绂佹娴忚鍣ㄧ紦瀛橀〉闈紙浣嗘槸娴忚鑰呭悓鏍峰彲浠ヤ繚瀛橀〉闈級

5銆丼et-Cookie :璁惧畾cookie鐨勮繃鏈熸椂闂淬€傜ず渚?
<meta http-equiv="Set-Cookie" Content="cookievalue=xxx; expires=Wednesday,銆€21-Oct-98 16:14:21 GMT; path=/">
6銆乄indow-target:寮哄埗椤甸潰鍦ㄥ綋鍓嶇獥鍙d互鐙珛椤甸潰鏄剧ず銆?
绀轰緥:
<meta http-equiv="Widow-target" Content="_top">
杩欎釜灞炴€ф槸鐢ㄦ潵闃叉鍒汉鍦ㄦ鏋堕噷璋冪敤浣犵殑椤甸潰銆侰ontent閫夐」:_blank銆乢top銆乢self銆乢parent銆?