HTML5ÈëÃÅ

СǿµÄHTML5Òƶ¯¿ª·¢Ö®Â·£¨3£©¡ª¡ªHTML5ÓëHTML4±È½Ï

×ÖºÅ+ ×÷ÕߣºË®º® À´Ô´£ºcsdn 2015-06-02 14:49 ÎÒÒªÆÀÂÛ( )

ÔÚÇ°Ãæ½éÉÜÁËHTML5µÄÐÂÌØÐÔ£¬Ð±êÇ©µÄʹÓã¬ÖÇÄÜ±íµ¥Éè¼Æ£¬ÒýÈë¶àýÌå¶ÔÏó£¬Canvas¶ÔÏóÄãµÄ»­²¼£¬À©Õ¹Í¼Ðαê¼Ç£¬HTML5ÖеĵØÀíÓ¦Ó㬶ÀÁ¢Êý¾Ý´æ´¢£¬ÐµÄÍøÂçÁ¬½Ó¡£HTML 5ÊǽüÊ®ÄêÀ´Web¿ª·¢±ê×¼×î¾Þ´óµÄ·ÉÔ¾¡£ºÍÒÔÇ°µÄ°æ±¾²»Í¬£¬HTML 5²¢·Ç½ö½öÓÃÀ´±íʾWebÄÚÈÝ

ÔÚÇ°Ãæ½éÉÜÁËHTML5µÄÐÂÌØÐÔ£¬Ð±êÇ©µÄʹÓã¬ÖÇÄÜ±íµ¥Éè¼Æ£¬ÒýÈë¶àýÌå¶ÔÏó£¬Canvas¶ÔÏóÄãµÄ»­²¼£¬À©Õ¹Í¼Ðαê¼Ç£¬HTML5ÖеĵØÀíÓ¦Ó㬶ÀÁ¢Êý¾Ý´æ´¢£¬ÐµÄÍøÂçÁ¬½Ó¡£

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>±íʾµ¼º½£¬ÕâÑù´úÂë±äµÄ·Ç³£ÓÐÓïÒåÇÒÈÝÒ×Àí½â£¨²»ÓÃÏñÉÏÃæÒ»ÑùÌí¼Ó¶îÍâµÄ×¢ÊÍ£©£¬Í¬Òâ¶ÔÓÚËÑË÷ÒýÇæÀ´Ëµ£¬¸üÈÝÒ×ÕÒµ½¡£

¡¡

1.±¾Õ¾×ñÑ­ÐÐÒµ¹æ·¶£¬ÈκÎתÔصĸå¼þ¶¼»áÃ÷È·±ê×¢×÷ÕߺÍÀ´Ô´£»2.±¾Õ¾µÄÔ­´´ÎÄÕ£¬ÇëתÔØʱÎñ±Ø×¢Ã÷ÎÄÕÂ×÷ÕߺÍÀ´Ô´£¬²»×ðÖØÔ­´´µÄÐÐΪÎÒÃǽ«×·¾¿ÔðÈΣ»3.×÷ÕßͶ¸å¿ÉÄܻᾭÎÒÃDZ༭Ð޸Ļò²¹³ä¡£

Ïà¹ØÎÄÕÂ
  • HTML5³£ÓñêÇ©×ܽá

    HTML5³£ÓñêÇ©×ܽá

    2016-03-23 14:02

  • html5ѧµÃºÃ²»ºÃ£¬¿´ÕÆÎÕ¶àÉÙ±êÇ©

    html5ѧµÃºÃ²»ºÃ£¬¿´ÕÆÎÕ¶àÉÙ±êÇ©

    2015-09-28 12:53

  • СǿµÄHTML5Òƶ¯¿ª·¢Ö®Â·£¨53£©¡ª¡ªjQueryMobileÒ³Ãæ¼ä²ÎÊý´«µÝ

    СǿµÄHTML5Òƶ¯¿ª·¢Ö®Â·£¨53£©¡ª¡ªjQueryMobileÒ³Ãæ¼ä²ÎÊý´«µÝ

    2015-06-02 14:32

  • СǿµÄHTML5Òƶ¯¿ª·¢Ö®Â·£¨52£©¡ª¡ªjquerymobileÖеĴ¥¿Ø½»»¥

    СǿµÄHTML5Òƶ¯¿ª·¢Ö®Â·£¨52£©¡ª¡ªjquerymobileÖеĴ¥¿Ø½»»¥

    2015-06-02 14:34

ÍøÓѵãÆÀ
³