<article>æ ç¾å®ä¹å¤é¨çå
容ãæ¯å¦æ¥èªä¸ä¸ªå¤é¨çæ°é»æä¾è
çä¸ç¯æ°çæç« ï¼æè
æ¥èª blog çææ¬ï¼æè
æ¯æ¥èªè®ºåçææ¬ã亦ææ¯æ¥èªå
¶ä»å¤é¨æºå
容ã
HTML5:<article></article>
HTML4:<div></div>
<aside>æ ç¾å®ä¹ article 以å¤çå
容ãaside çå
容åºè¯¥ä¸ article çå
容ç¸å
³ã
HTML5:<aside>Aside çå
容æ¯ç¬ç«çå
容ï¼ä½åºä¸ææ¡£å
容ç¸å
³ã</aside>
HTML4:<div>Aside çå
容æ¯ç¬ç«çå
容ï¼ä½åºä¸ææ¡£å
容ç¸å
³ã</div>
<audio> æ ç¾å®ä¹å£°é³ï¼æ¯å¦é³ä¹æå
¶ä»é³é¢æµã
HTML5:<audio src="someaudio.wav">æ¨çæµè§å¨ä¸æ¯æ audio æ ç¾ã</audio>
HTML4:<object type="application/ogg" data="someaudio.wav"><param name="src" value="someaudio.wav"></object>
<canvas> æ ç¾å®ä¹å¾å½¢ï¼æ¯å¦å¾è¡¨åå
¶ä»å¾åãè¿ä¸ª HTML å
ç´ æ¯ä¸ºäºå®¢æ·ç«¯ç¢éå¾å½¢è设计çãå®èªå·±æ²¡æè¡ä¸ºï¼ä½å´æä¸ä¸ªç»å¾ API å±ç°ç»å®¢æ·ç«¯ JavaScript 以使èæ¬è½å¤ææ³ç»å¶çä¸è¥¿é½ç»å¶å°ä¸åç»å¸ä¸ã
HTML5:<canvas id="myCanvas" width="200" height="200"></canvas>
HTML4:<object data="inc/hdr.svg" type="image/svg+xml" width="200" height="200"></object>
<command> æ ç¾å®ä¹å½ä»¤æé®ï¼æ¯å¦åéæé®ãå¤éæ¡ææé®ã
HTML5: <command onclick=cut()" label="cut">
HTML4: none
<datalist> æ ç¾å®ä¹å¯éæ°æ®çå表ãä¸ input å
ç´ é
å使ç¨ï¼å°±å¯ä»¥å¶ä½åºè¾å
¥å¼çä¸æå表ã
HTML5: <datalist></datalist>
HTML4: see combobox.
<details> æ ç¾å®ä¹å
ç´ çç»èï¼ç¨æ·å¯è¿è¡æ¥çï¼æéè¿ç¹å»è¿è¡éèãä¸ <legend> ä¸èµ·ä½¿ç¨ï¼æ¥å¶ä½ detail çæ é¢ã该æ é¢å¯¹ç¨æ·æ¯å¯è§çï¼å½å¨å
¶ä¸ç¹å»æ¶å¯æå¼æå
³é detailã
HTML5: <details></details>
HTML4: <dl style="display:hidden"></dl>
<embed> æ ç¾å®ä¹åµå
¥çå
容ï¼æ¯å¦æ件ã
HTML5: <embed src="horse.wav" />
HTML4: <object data="flash.swf" type="application/x-shockwave-flash"></object>
<figcaption> æ ç¾å®ä¹ figure å
ç´ çæ é¢ãâfigcaptionâ å
ç´ åºè¯¥è¢«ç½®äº âfigureâ å
ç´ ç第ä¸ä¸ªææåä¸ä¸ªåå
ç´ çä½ç½®ã
HTML5: <figure><figcaption>PRC</figcaption></figure>
HTML4: none
<figure> æ ç¾ç¨äºå¯¹å
ç´ è¿è¡ç»åãä½¿ç¨ <figcaption> å
ç´ ä¸ºå
ç´ ç»æ·»å æ é¢ã
HTML5: <figure><figcaption>PRC</figcaption><p>The People's Republic of China was born in 1949...</p></figure>
HTML4: <dl><h1>PRC</h1><p>The People's Republic of China was born in 1949...</p></dl>
<footer> æ ç¾å®ä¹ section æ document ç页èãå
¸åå°ï¼å®ä¼å
å«åä½è
çå§åãææ¡£çåä½æ¥æ以å/æè
è系信æ¯ã
HTML5: <footer></footer>
HTML4: <div></div>
<header> æ ç¾å®ä¹ section æ document ç页çã
HTML5: <header></header>
HTML4: <div></div>
<hgroup> æ ç¾ç¨äºå¯¹ç½é¡µæåºæ®µï¼sectionï¼çæ é¢è¿è¡ç»åã
HTML5: <hgroup></hgroup>
HTML4: <div></div>
<keygen> æ ç¾å®ä¹çæå¯é¥ã
HTML5: <keygen>
HTML4: none
<mark>主è¦ç¨æ¥å¨è§è§ä¸åç¨æ·åç°é£äºéè¦çªåºçæåã<mark>æ ç¾çä¸ä¸ªæ¯è¾å
¸åçåºç¨å°±æ¯å¨æç´¢ç»æä¸åç¨æ·é«äº®æ¾ç¤ºæç´¢å
³é®è¯ã
HTML5: <mark></mark>
HTML4: <span></span>
<meter> æ ç¾å®ä¹åº¦éè¡¡ãä»
ç¨äºå·²ç¥æ大åæå°å¼ç度éãå¿
é¡»å®ä¹åº¦éçèå´ï¼æ¢å¯ä»¥å¨å
ç´ çææ¬ä¸ï¼ä¹å¯ä»¥å¨ min/max å±æ§ä¸å®ä¹ã
HTML5: <meter></meter>
HTML4: none
<nav> æ ç¾å®ä¹å¯¼èªé¾æ¥çé¨åã
HTML5: <nav></nav>
HTML4:<ul></ul>
<output> æ ç¾å®ä¹ä¸åç±»åçè¾åºï¼æ¯å¦èæ¬çè¾åºã
HTML5: <output></output>
HTML4: <span></span>
<progress> æ ç¾è¿è¡ä¸çè¿ç¨ãå¯ä»¥ä½¿ç¨ <progress> æ ç¾æ¥æ¾ç¤º JavaScript ä¸èè´¹æ¶é´çå½æ°çè¿ç¨ã
HTML5: <progress></progress>
HTML4: none
<rp> æ ç¾å¨ ruby 注éä¸ä½¿ç¨ï¼ä»¥å®ä¹ä¸æ¯æ ruby å
ç´ çæµè§å¨ææ¾ç¤ºçå
容ã
HTML5: <ruby>æ± <rt><rp>(</rp>ãã¢Ë<rp>)</rp></rt></ruby>
HTML4: none
<rt> æ ç¾å®ä¹å符ï¼ä¸æ注é³æå符ï¼ç解éæåé³ã
HTML5: <ruby>æ± <rt> ãã¢Ë </rt></ruby>
HTML4: none
<ruby> æ ç¾å®ä¹ ruby 注éï¼ä¸æ注é³æå符ï¼ã
HTML5: <ruby>æ± <rt><rp>(</rp>ãã¢Ë<rp>)</rp></rt></ruby>
HTML4: none
<section> æ ç¾å®ä¹ææ¡£ä¸çèï¼sectionãåºæ®µï¼ãæ¯å¦ç« èã页çã页èæææ¡£ä¸çå
¶ä»é¨åã
HTML5: <section></section>
HTML4: <div></div>
<source> æ ç¾ä¸ºåªä»å
ç´ ï¼æ¯å¦ <video> å <audio>ï¼å®ä¹åªä»èµæºã
HTML5: <source>
HTML4: <param>
<summary> æ ç¾å
å« details å
ç´ çæ é¢ï¼âdetailsâ å
ç´ ç¨äºæè¿°æå
³ææ¡£æææ¡£ç段ç详ç»ä¿¡æ¯ãâsummaryâ å
ç´ åºè¯¥æ¯ âdetailsâ å
ç´ ç第ä¸ä¸ªåå
ç´ ã
HTML5: <details><summary>HTML 5</summary>This document teaches you everything you have to learn about HTML 5.</details>
HTML4: none
<time> æ ç¾å®ä¹æ¥æææ¶é´ï¼æè
两è
ã
HTML5: <time></time>
HTML4: <span></span>
<video> æ ç¾å®ä¹è§é¢ï¼æ¯å¦çµå½±ç段æå
¶ä»è§é¢æµã
HTML5: <video src="movie.ogg" controls="controls">æ¨çæµè§å¨ä¸æ¯æ video æ ç¾ã</video>
HTML4:<object type="video/ogg" data="movie.ogv"><param name="src" value="movie.ogv"></object>
温馨提示:内容为网友见解,仅供参考