´¿Îı¾»¹ÊÇHTML?
---ÄÄÒ»ÖÖÓʼþÀàÐ͸üÊʺÏÄ㣿
ÒýÑÔ
Èç¹ûÄãÕý×¼±¸Æô¶¯Ò»ÏîÓʼþÓªÏú¼Æ»®£¬µ«²»È·¶¨ÊǸÃÓÃͼÎIJ¢Ã¯µÄHTMLÓʼþÀ´ÌáÉýÓʼþµÄÊÓ¾õÌåÑ飬»¹ÊÇÓô¿Îı¾µÄÓʼþÀ´Ìá¸ßÓʼþµÄËÍ´ïÂÊ£¨²¢½ÚÊ¡×ÊÔ´£©£¬Comm100½«Í¨¹ý±¾ÎÄΪÄãÁоÙÕâÁ½ÖÖÓʼþÀàÐ͸÷×ÔµÄÓÅÁÓÊÆ£¬²¢½ÌÄãÈçºÎͨ¹ýÄ£°åÀàÐͺÍÏÔʾЧ¹ûÀ´ÓÅ»¯ÄãµÄÓʼþÓªÏú¼Æ»®¡£
´¿Îı¾ÀàÐÍÓʼþºÍHTMLÀàÐÍÓʼþµÄºÒå
ÔÚÑ¡ÔñÓʼþÀàÐÍʱ£¬Ê×ÏÈÄãÐèÒªÖªµÀʲôÊÇ´¿Îı¾Óʼþ£¬Ê²Ã´ÊÇHTMLÓʼþ¡£HTMLÓʼþµÄ·ç¸ñ¾ÍÏñÒ»ÕÅÍøÒ³£¬°üº¬É«²Ê¡¢Í¼Æ¬¡¢±í¸ñºÍÁ´½ÓµÈ¶àÖÖÔªËØ£¬»ØÏëÒ»ÏÂÄãÊÕµ½µÄÆäËû¹«Ë¾·¢À´µÄ¹ã¸æÓʼþ£¬HTMLÓʼþ²î²»¶à¾ÍÊÇÄǸöÑù×Ó£»¶øÎÒÃÇËù˵µÄ´¿Îı¾ÓʼþÈ´Ö»°üº¬ÎÄ×Ö£¬»ØÒäÒ»ÏÂÄãÃǹ«Ë¾ÄÚ²¿Ô±¹¤¼ä·¢µÄÓʼþ£¬´¿Îı¾Óʼþ²î²»¶à¾ÍÊÇÄǸöÑù×Ó¡£
ÓʼþÓªÏúÈËÔ±Ò»°ã²»±ØÕùÂÛÄÄÖÖÓʼþÀàÐ͸üºÃ£¬ÒòΪ¼¸ºõÿ´Î²âÊÔ½á¹û¶¼ÏÔʾHTMLÓʼþµÄת»»Âʶ¼±È´¿Îı¾Óʼþ¸ß¡£µ«ÊÇ£¬ÔÚ¾ö¶¨Ê¹ÓÃÄÄÒ»ÖÖÓʼþÀàÐÍÇ°£¬ÐèÒª×ÐϸÕå×ã¬×ö³ö×îÃ÷ÖǵÄÑ¡Ôñ¡£
HTMLÓʼþ
HTMLÓʼþ²¢·ÇʮȫʮÃÀ£¬ÓÐʱҲ»á´øÀ´Ò»Ð©ÎÊÌ⣬ÒÔÏÂÊÇComm100ΪÄã×ܽá³öµÄ¼¸µãÐèҪעÒâµÄÊÂÏî¡£
À¬»øÓʼþ£ºÈç¹ûÄãµÄHTML´úÂë²»¹»¹æ·¶£¬ÄãµÄÓʼþ¾Í¿ÉÄܻᷢË͵½À¬»øÓʼþÏä¡£Óʼþ·þÎñÉ̵ÄÀ¬»ø ......
HTML ÊÇ Web ͳһÓïÑÔ£¬ÕâЩÈÝÄÉÔÚ¼âÀ¨ºÅÀïµÄ¼òµ¥±êÇ©£¬¹¹³ÉÁËÈç½ñµÄ Web¡£1991 Ä꣬Tim Berners-Lee
±àдÁËÒ»·Ý½Ð×ö “HTML ±êÇ©”µÄÎĵµ£¬ÀïÃæ°üº¬ÁË´óÔ¼20¸öÓÃÀ´±ê¼ÇÍøÒ³µÄ HTML ±êÇ©¡£ËûÖ±½Ó½èÓà SGML
µÄ±ê¼Ç¸ñʽ£¬Ò²¾ÍÊǺóÀ´ÎÒÃÇ¿´µ½µÄ HTML ±ê¼ÇµÄ¸ñʽ¡£±¾ÎĽ²ÊöÁË HTML ÕâÃÅ Web ±ê¼ÇÓïÑԵķ¢Õ¹¼òÊ·¡£
´Ó IETF µ½ W3C: HTML 4 ֮·
HTML 1 ²¢²»Ôø´æÔÚ£¬HTML µÄµÚÒ»¸ö¹Ù·½°æ±¾¾ÍÊÇÓÉ IETF £¨»¥ÁªÍø¹¤³ÌÈÎÎñ×飩 ÍƳöµÄ HTML
2.0¡£ÎÊÊÀ֮ǰ£¬Õâ¸ö°æ±¾ÖеĺܶàϸÔòÒѾ±»ÊµÏÖ£¬±ÈÈ磬1994ÄêµÄ Mosaic ä¯ÀÀÆ÷ÒѾʵÏÖÁËÔÚÎĵµÖÐǶÈëͼƬµÄ·½·¨£¬ºóÀ´ HTML
2.0 ±ãÎüÄÉÁË img Õâ¸ö±êÇ©¡£
ºóÀ´£¬W3C È¡´ú IETF µÄ½ÇÉ«£¬³ÉΪ HTML µÄ±ê×¼×éÖ¯£¬1990Äê´úµÄºó°ëÒ³£¬HTML µÄ°æ±¾±»Æµ·±Ð޸ģ¬Ö±µ½1999ÄêµÄ
HTML 4.01£¬ÖÁ´Ë£¬HTML µ½´ïÁËËüµÄµÚÒ»¸ö¹Õµã¡£
XHTML 1: XML ·ç¸ñµÄ HTML
HTML ÔÚ HTML 4.01 Ö®ºóµÄµÚÒ»¸öÐÞ¶©°æ±¾¾ÍÊÇ XHTML 1.0£¬ÆäÖÐ X ´ú±í “eXtensible”
£¬À©Õ¹£¬µ±È»Ò²ÓÐÈ˽«Ö®½â¶ÁΪ “eXtreme”£¬¼«¶Ë¡£XHTML 1.0 ÊÇ»ùÓÚ HTML 4.01
µÄ£¬²¢Ã»ÓÐÒýÈëÈκÎбêÇ©»òÊôÐÔ£¬Î¨Ò»µÄÇø±ðÊÇÓï·¨£¬HTML ¶ÔÓï·¨±È½ÏËæ±ã£¬¶ø XHTML ......
HTMLµÄ½çÃæÓÐÒÔÏÂÌص㣺ͼÎÄ»ìÅÅ£¬¸ñʽÁé»î£¬¿ÉÒÔ°üº¬Flash¡¢ÉùÒôºÍÊÓƵµÈ£¬ÊµÏÖͼÎÄÉùÏñµÄ¶àýÌå½çÃ棬¶øÇÒÒ×ÓÚ½¨Á¢ºÍά»¤¡£ÁíÍ⣬HTMLµÄÏÔʾ»·¾³Ò»°ã»úÆ÷É϶¼¾ß±¸£¬Í¨³£²»ÐèÒª°²×°¶îÍâµÄÈí¼þ¡£µ±È»£¬HTML½çÃæÒ²ÓÐËüǷȱµÄ·½Ã棬¼´£º½çÃæ¿ØÖÆÄÜÁ¦ÓÐÏÞ£¬´úÂëµ÷ÊÔ²»±ã----ËäÈ»DHTMLÌṩÁ˱ȽÏÇ¿µÄ±à³ÌÌØÐÔ£¬µ«ÊDZÈÆðDelphiµÄ´«Í³µÄ¿ª·¢ÓïÑԺ͹¤¾ßÀ´£¬¶Ô½çÃæµÄ¿ØÖÆÄÜÁ¦£¬ÓÈÆäÊǺÍÊý¾Ý½»»¥Ê±µÄ¿ØÖÆÄÜÁ¦»¹ÊÇÉÔÑ·Ò»³ï¡£
Á˽âÁËÕâЩÌص㣬ÎÒÃǾͿÉÒÔÔÚʵ¼ÊÓ¦Óÿª·¢ÖУ¬ÊÊʱµØÑ¡ÔñHTML¼¼Êõ¡£ÏÂÃæ¾Ù¸öÀý×Ó£º
Ò»ÖÖÒÇÆ÷µÄ¹ÜÀí³ÌÐò£¬ÐèÒªÏÔʾ¸ÃÒÇÆ÷µÄ²Ù×÷·½·¨Îĵµ£¬°üº¬ÎÄ×ÖºÍͼƬ£¬²¢ÒªÇó¿ÉÒÔÒþ²Ø»òÏÔʾÎĵµ£¬²¢ÄÜ°²ÒªÇó´òÓ¡¡£
Õâ¸öÓ¦ÓÃÖУ¬Í¼ÎÄÏÔʾ¡¢Òþ²Ø/ÏÔʾ²¿·ÖÎĵµ¡¢Í¼ÎÄ´òÓ¡µÈÐèÇ󣬶¼ÊÇHTML½çÃæËùÉó¤µÄ£¬Óô«Í³µÄ±íµ¥¿Ø¼þʵÏÖ¼¸ºõÎÞ·¨ÏëÏñ¡£
¡¡
ÓÃʲôʵÏÖHTMLµÄ½çÃæ
ÓÃDelphiʵÏÖHTML½çÃæµÄÓ¦ÓÃÖ÷ÒªÓÐÁ½ÖÖÑ¡Ôñ£ºWebBrowser Control»òMSHTML¡£ÎªÁËŪÇåÁ½ÕßÈçºÎÑ¡Ôñ£¬ÎÒÃÇÏÈÀ´¿´¿´Internet Exporer 4.0¼°ÆäºóÐø°æ±¾µÄÌåϵ½á¹¹£º
IEä¯ÀÀÆ÷Êǽ¨Á¢ÔÚSHDOCVW.DLL×é¼þÖ®Éϵģ¬¶øSHDOCVW.DLLÔò½¨Á¢ÔÚMSHTML.DLL×é¼þÖ®ÉÏ£¬µ×²ãÔò°üÀ¨½Å±¾ÒýÇæµÈ¡£SHDOCVW.DLLÌṩÁ˶ԻÎĵµ(Act ......
function unhtml($content){
$content=htmlspecialchars($content);
$content=str_replace(chr(13),"<br>",$content);
$content=str_replace(chr(32)," ",$content);
return trim($content);
}
......
HTML×Ö·ûʵÌå(Character Entities)
ÓÐЩ×Ö·ûÔÚHTMLÀïÓÐÌرðµÄº¬Ò壬±ÈÈçСÓÚºÅ<¾Í±íʾHTML TagµÄ¿ªÊ¼£¬Õâ¸öСÓÚºÅÊDz»ÏÔʾÔÚÎÒÃÇ×îÖÕ¿´µ½µÄÍøÒ³ÀïµÄ¡£ÄÇÈç¹ûÎÒÃÇÏ£ÍûÔÚÍøÒ³ÖÐÏÔʾһ¸öСÓںţ¬¸ÃÔõô°ìÄØ£¿
Õâ¾ÍҪ˵µ½HTML×Ö·ûʵÌå(HTML Character Entities)ÁË¡£
Ò»¸ö×Ö·ûʵÌå(Character Entity)·Ö³ÉÈý²¿·Ö£ºµÚÒ»²¿·ÖÊÇÒ»¸ö&·ûºÅ£¬Ó¢ÎĽÐampersand£»µÚ¶þ²¿·ÖÊÇʵÌå(Entity)Ãû×Ö»òÕßÊÇ#¼ÓÉÏʵÌå(Entity)±àºÅ£»µÚÈý²¿·ÖÊÇÒ»¸ö·ÖºÅ¡£
±ÈÈ磬ҪÏÔʾСÓںţ¬¾Í¿ÉÒÔд<»òÕß<¡£
ÓÃʵÌå(Entity)Ãû×ֵĺô¦ÊDZȽϺÃÀí½â£¬Ò»¿´lt£¬´ó¸Å¾Í²Â³öÊÇless thanµÄÒâ˼£¬µ«ÊÇÆäÁÓÊÆÔÚÓÚ²¢²»ÊÇËùÓеÄä¯ÀÀÆ÷¶¼Ö§³Ö×îеÄEntityÃû×Ö¡£¶øʵÌå(Entity)±àºÅ£¬¸÷ÖÖä¯ÀÀÆ÷¶¼ÄÜ´¦Àí¡£
×¢Ò⣺EntityÊÇÇø·Ö´óСдµÄ¡£
ÈçºÎÏÔʾ¿Õ¸ñ
ͨ³£Çé¿öÏ£¬HTML»á×Ô¶¯½ØÈ¥¶àÓàµÄ¿Õ¸ñ¡£²»¹ÜÄã¼Ó¶àÉÙ¿Õ¸ñ£¬¶¼±»¿´×öÒ»¸ö¿Õ¸ñ¡£±ÈÈçÄãÔÚÁ½¸ö×ÖÖ®¼ä¼ÓÁË10¸ö¿Õ¸ñ£¬HTML»á½ØÈ¥9¸ö¿Õ¸ñ£¬Ö»±£ÁôÒ»¸ö¡£ÎªÁËÔÚÍøÒ³ÖÐÔö¼Ó¿Õ¸ñ£¬Äã¿ÉÒÔʹÓà ±íʾ¿Õ¸ñ¡£
×î³£ÓõÄ×Ö·ûʵÌå(Character Entities)
ÏÔʾ½á¹û
˵Ã÷
Entity Name
Entity Number
ÏÔʾһ¸ö¿Õ¸ñ
&nb ......
<select name="CluefromType" id="CluefromType" style="width: 182px" onchange="return CluefromOtherTypeSelected();">
<option value="Êг¡×ß·Ã">
Êг¡×ß·Ã
</option>
<option value="¹¤³§×ß·Ã">
¹¤³§×ß·Ã
</option>
<option value="Õ¹»á">
Õ¹»á
</option>
<option value="ÏßÈË">
ÏßÈË
</option>
<option value="µ÷²é¹«Ë¾">
µ÷² ......