HTML 5ÊǽüÊ®ÄêÀ´Web¿ª·¢±ê×¼×î¾Þ´óµÄ·ÉÔ¾¡£ºÍÒÔÇ°µÄ°æ±¾²»Í¬£¬HTML 5²¢·Ç½ö½öÓÃÀ´±íʾWebÄÚÈÝ£¬ËüµÄÐÂʹÃüÊǽ«Web´øÈëÒ»¸ö³ÉÊìµÄÓ¦ÓÃƽ̨£¬ÔÚHTML 5ƽ̨ÉÏ£¬ÊÓƵ£¬ÒôƵ£¬Í¼Ï󣬶¯»£¬ÒÔ¼°Í¬µçÄԵĽ»»¥¶¼±»±ê×¼»¯¡££¨HTML5Ò²ÓÐÁË×Ô¼ºµÄlogo£©.ѧϰHTML5ÐèÒªÕÆÎÕÏÂÃ漸·½Ãæ֪ʶ¡£
1¡¢HTML»ù´¡ÖªÊ¶
2¡¢CSSÑùʽ֪ʶ
3¡¢JavaScript֪ʶ
ºÜ¶àÒÔǰѧ¹ýHTML 4.0µÄÅóÓÑ¿ÉÄÜ´Ëʱ»á¸Ðµ½ºÜÃԻ󣬵½µ×html 4.0ºÍHTML5µÄÇø±ðÊÇʲô£¬Ñ§¹ýhtml4.0»á¶ÔѧϰHTML5ÓÐʲô°ïÖú ÆäʵHTML5ºÍHTML4×î´óµÄÇø±ð¾ÍÊÇHTML5¸ü¼Ó×¢ÖØÄÚÈÝÓë½á¹¹¶ø²»×¨×¢±íÏÖ£¬¾Ù¸öÀý×Ó£º
<body> <header> <hgroup>µ¼º½Ïà¹ØÊý¾Ý</hgroup> </header> <nav>²Ëµ¥</nav> <article> <h1>±êÌâ:HTML5רÌâ</h1> ·¢²¼ÈÕÆÚ:<time>19:00</time> <time datetime="2013-2-14">ÇéÈ˽Ú</time> <p>²âÊÔÏà¹ØÄÚÈÝ</p> </article> <footer> <address>CSDN-´óÍë¸É°èµÄ²©¿Í</address> </footer> </body>
ÏñÉÏÃæÕâ¸öhtml5Öеĺܶà±êÇ©£¬ÔÚÒÔÇ°µÄhtml4ÖÐÎÒÃǶ¼¿ÉÒÔʹÓÃ<div>±êÇ©´úÌ棬ÄÇôΪʲô»¹ÓÐÓÃÕâô¶àûÓÐʹÓùýµÄ±êÇ©ÄØ£¬Õâ·´¶øÔö¼ÓÁ˼ÇÒäÄѶȣ¿ÊÂʵÉϲ»ÊÇÕâÑùµÄ£¬ÕâÑù×öÓкܶàºÃ´¦£¬ÕâЩÌض¨Ãû³ÆµÄ±êÇ©¸üÈÝÒ×Çø·Ö¸÷×ԵŦÄÜ£¬±ÈÈç¿ÉÒÔͬʱÔÚPCä¯ÀÀÆ÷ºÍÒƶ¯¶Ëä¯ÀÀÆ÷ÉÏʶ±ð²¢ÒԺܺõIJ¼¾ÖÕ¹ÏÖ¡£
»¹ÓÐÒ»¸öÇø±ð¾ÍÊÇ£¬HTML5ÔÚ¸ü¶àµÄÉùÃ÷ºÍ±êÇ©ÉÏÃæ×öÁ˼ò»¯£¬Ò²¶Ô¼æÈÝ×öÁËÏêϸµÄ¹æ¶¨£¬·Ï³ýÁ˲¿·ÖÔªËØ£¬Ôö¼ÓÁ˲¿·ÖÔªËØ£¬ÈçÏÂÃæµÄÉùÃ÷£º
HTML4µÄÉùÃ÷£º
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitonal//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-t...... <html xmlns="http://www.w3.org/1999/xhtml"> <meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>HTML5µÄÉùÃ÷£º
<!DOCTYPE html> <meta charset=utf-8/>
ÔÚÒýÈëJavaScript»òCSSÎļþµÄʱºò£¬HTML4ÖÐд·¨ÈçÏ£º
<script src="js/juery-1.6.2.js" type="text/javascript"></script>ÔÚHTML5ÖбäµÄ¸ü¼òµ¥£º
<script src="js/juery-1.6.2.js"></script>²»½öÈç´Ë£¬HTML5½ÓÊÜһЩ±È½ÏËÉÉ¢µÄµÄÓï·¨£¬±ÈÈç<sCript><script>´óСд»ìÓá£
´ÓÉÏÃæ¿ÉÒÔ¿´³öHTML5ÔÚÒÔÇ°ä¯ÀÀÆ÷·¢Õ¹µÄ»ù´¡É϶ԱêÇ©½øÐÐÁ˼ò»¯¡£ÁíÍâHTML5ÖжԱêÇ©´ÓÓï·¨ÉÏÒ²½øÐÐÁË·ÖÀࣺ
£¨1£©²»ÔÊÐíд½áÊø·ûµÄ±êÇ©£ºarea¡¢basebr¡¢col¡¢command¡¢embed¡¢hr¡¢img¡¢input¡¢keygen¡¢link¡¢meta¡¢param¡¢source¡¢Track¡¢wbr
£¨2£©¿ÉÒÔÊ¡ÂÔ½áÊø·ûµÄ±êÇ©£ºli¡¢dt¡¢dd¡¢p¡¢rt¡¢optgroup¡¢option¡¢colgroup¡¢thread¡¢tbody¡¢tr¡¢td¡¢th
£¨3£©¿ÉÒÔÍêÈ«Ê¡ÂԵıêÇ©£ºhtml¡¢head¡¢body¡¢colgroup¡¢tbody
ÔÚhtml4µÄ»ù´¡ÉÏhtml5Ò²ÐÂÔöÁ˺ܶà±êÇ©£¬ÏÂÃæÁоٲ¿·ÖÐÂÔö±êÇ©£º
<article> ±ê¼Ç¶¨ÒåһƪÎÄÕ <aside> ±ê¼Ç¶¨ÒåÒ³ÃæÄÚÈݲ¿·ÖµÄ²à±ßÀ¸ <audio> ±ê¼Ç¶¨ÒåÒôƵÄÚÈÝ <canvas> ±ê¼Ç¶¨ÒåͼƬ <command> ±ê¼Ç¶¨ÒåÒ»¸öÃüÁî°´Å¥ <datalist> ±ê¼Ç¶¨ÒåÒ»¸öÏÂÀÁбí <details> ±ê¼Ç¶¨ÒåÒ»¸öÔªËصÄÏêϸÄÚÈÝ <dialog> ±ê¼Ç¶¨ÒåÒ»¸ö¶Ô»°¿ò(»á»°¿ò) <embed> ±ê¼Ç¶¨ÒåÍⲿµÄ¿É½»»¥µÄÄÚÈÝ»ò²å¼þ <figure> ±ê¼Ç¶¨ÒåÒ»×éýÌåÄÚÈÝÒÔ¼°ËüÃǵıêÌâ<footer> ±ê¼Ç¶¨ÒåÒ»¸öÒ³Ãæ»òÒ»¸öÇøÓòµÄµ×²¿ <header> ±ê¼Ç¶¨ÒåÒ»¸öÒ³Ãæ»òÒ»¸öÇøÓòµÄÍ·²¿ <hgroup> ±ê¼Ç¶¨ÒåÎļþÖÐÒ»¸öÇø¿éµÄÏà¹ØÐÅÏ¢ <keygen> ±ê¼Ç¶¨Òå±íµ¥ÀïÒ»¸öÉú³ÉµÄ¼üÖµ <mark> ±ê¼Ç¶¨ÒåÓбê¼ÇµÄÎı¾ <meter> ±ê¼Ç¶¨Òå measurementwithin apredefinedrange <nav> ±ê¼Ç¶¨Òåµ¼º½Á´½Ó <output> ±ê¼Ç¶¨ÒåһЩÊä³öÀàÐÍ <progress> ±ê¼Ç¶¨ÒåÈÎÎñµÄ¹ý³Ì <rp> ±ê¼ÇÊÇÓÃÔÚRubyannotations ¸æËßÄÇЩ²»Ö§³ÖRubyÔªËصÄä¯ÀÀÆ÷ÈçºÎÈ¥ÏÔʾ <rt> ±ê¼Ç¶¨Òå¶ÔrubyannotationsµÄ½âÊÍ <ruby> ±ê¼Ç¶¨Òå rubyannotations. <section> ±ê¼Ç¶¨ÒåÒ»¸öÇøÓò <source> ±ê¼Ç¶¨ÒåýÌå×ÊÔ´ <time> ±ê¼Ç¶¨ÒåÒ»¸öÈÕÆÚ/ʱ¼ä <video> ±ê¼Ç¶¨ÒåÒ»¸öÊÓƵ
ÒÔÇ°ÖÆ×÷Íøҳͷ²¿µ¼º½µÄ´úÂëÈçÏ£º
<div class="header"> <div class="navigation"> <ul class="nav_list"> <li><a href="#" title="Home">Home</li> <li><a href="#" title="About">About</li> </ul> </div><!--µ¼º½±êÇ©½áÊø--> </div><!--Í·²¿½áÊø-->ÓÃHTML5ʵÏÖÈçÏ£º
<header> <nav> <ul id="nav-list"> <li><a href="#" title="Home">Home</a></li> <li><a href="#" title="About">About</a></li> </ul> </nav> </header>ÓÐÅóÓÑ¿ÉÄÜ»áÎÊÁË£¬ÕâÑùдÓÐʲôÓÅÊÆÂð£¿ÔÚHTML5ÖÐÓöÀÁ¢µÄ±êÇ©´ú±íÌض¨µÄ¹¦ÄÜ£¬±ÈÈç<header>±íʾͷ²¿£¬<nav>±íʾµ¼º½£¬ÕâÑù´úÂë±äµÄ·Ç³£ÓÐÓïÒåÇÒÈÝÒ×Àí½â£¨²»ÓÃÏñÉÏÃæÒ»ÑùÌí¼Ó¶îÍâµÄ×¢ÊÍ£©£¬Í¬Òâ¶ÔÓÚËÑË÷ÒýÇæÀ´Ëµ£¬¸üÈÝÒ×ÕÒµ½¡£
¡¡