HTML <meta> 鏍囩


瀹炰緥

鎻忚堪 HTML 鏂囨。鐨勫厓鏁版嵁锛

<head> <meta name="description" content="鍏嶈垂鍦ㄧ嚎鏁欑▼"> <meta name="keywords" content="HTML,CSS,XML,JavaScript"> <meta name="author" content="runoob"> <meta charset="UTF-8"> </head>

灏濊瘯涓涓 禄

娴忚鍣ㄦ敮鎸

Internet Explorer Firefox Opera Google Chrome Safari

鎵鏈変富娴佹祻瑙堝櫒閮芥敮鎸 <meta> 鏍囩銆


鏍囩瀹氫箟鍙婁娇鐢ㄨ鏄

新快三讨论群—官方网址22270.COM鍏冩暟鎹紙Metadata锛夋槸鏁版嵁鐨勬暟鎹俊鎭

<meta> 鏍囩鎻愪緵浜 HTML 鏂囨。鐨勫厓鏁版嵁銆傚厓鏁版嵁涓嶄細鏄剧ず鍦ㄥ鎴风锛屼絾鏄細琚祻瑙堝櫒瑙f瀽銆

META鍏冪礌閫氬父鐢ㄤ簬鎸囧畾缃戦〉鐨勬弿杩帮紝鍏抽敭璇嶏紝鏂囦欢鐨勬渶鍚庝慨鏀规椂闂达紝浣滆呭強鍏朵粬鍏冩暟鎹

鍏冩暟鎹彲浠ヨ浣跨敤娴忚鍣紙濡備綍鏄剧ず鍐呭鎴栭噸鏂板姞杞介〉闈級锛屾悳绱㈠紩鎿庯紙鍏抽敭璇嶏級锛屾垨鍏朵粬 Web 鏈嶅姟璋冪敤銆


鎻愮ず鍜屾敞閲

娉ㄦ剰锛<meta> 鏍囩閫氬父浣嶄簬 <head> 鍖哄煙鍐呫

娉ㄦ剰锛新快三讨论群—官方网址22270.COM鍏冩暟鎹氬父浠 鍚嶇О/鍊 瀵瑰嚭鐜般

娉ㄦ剰锛 濡傛灉娌℃湁鎻愪緵 name 灞炴э紝閭d箞鍚嶇О/鍊煎涓殑鍚嶇О浼氶噰鐢 http-equiv 灞炴х殑鍊笺


HTML 4.01 涓 HTML5涔嬮棿鐨勫樊寮

HTML5 涓嶆敮鎸 scheme 灞炴с

鍦 HTML5 涓紝鏈変竴涓柊鐨 charset 灞炴э紝瀹冧娇瀛楃闆嗙殑瀹氫箟鏇村姞瀹规槗锛

  • HTML 4.01锛 <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  • HTML5锛 <meta charset="UTF-8">

HTML 涓 XHTML 涔嬮棿鐨勫樊寮

新快三讨论群—官方网址22270.COM鍦 HTML 涓 <meta> 鏍囩娌℃湁缁撴潫鏍囩銆

新快三讨论群—官方网址22270.COM鍦 XHTML 涓 <meta> 鏍囩蹇呴』鍖呭惈缁撴潫鏍囩銆


瀹炰緥

瀹炰緥 1 - 瀹氫箟鏂囨。鍏抽敭璇嶏紝鐢ㄤ簬鎼滅储寮曟搸锛

<meta name="keywords" content="HTML, CSS, XML, XHTML, JavaScript">

瀹炰緥 2 - 瀹氫箟web椤甸潰鎻忚堪锛

<meta name="description" content="Free Web tutorials on HTML and CSS">

瀹炰緥 3 - 瀹氫箟椤甸潰浣滆咃細

<meta name="author" content="Hege Refsnes">

瀹炰緥 4 - 姣30绉掑埛鏂伴〉闈細

<meta http-equiv="refresh" content="30">


灞炴

New 锛欻TML5 鏂板睘鎬с

灞炴 鎻忚堪
charsetNew character_set 新快三讨论群—官方网址22270.COM瀹氫箟鏂囨。鐨勫瓧绗︾紪鐮併
content text 瀹氫箟涓 http-equiv 鎴 name 灞炴х浉鍏崇殑鍏冧俊鎭
http-equiv content-type
default-style
refresh
鎶 content 灞炴у叧鑱斿埌 HTTP 澶撮儴銆
name application-name
author
description
generator
keywords
鎶 content 灞炴у叧鑱斿埌涓涓悕绉般
scheme format/URI HTML5涓嶆敮鎸併 瀹氫箟鐢ㄤ簬缈昏瘧 content 灞炴у肩殑鏍煎紡銆


浜嬩欢灞炴

<p> 鏍囩鏀寔鎵鏈 HTML浜嬩欢灞炴


鐩稿叧鏂囩珷

HTML 鏁欑▼锛HTML 澶撮儴