SlideShare a Scribd company logo
1 of 41
Download to read offline
HTML



WMMKS Lab
 郭至軒
HTML 5

當前版本 HTML 4.01

HTML 5:含 HTML、CSS 以及 Javascript

尚未正式推出,大多數主流瀏覽器支援部份功
能,至於 IE...

HTML5 & CSS3 Support
new tags

section, video, progress, nav, meter,
time, aside, canvas, command, datalist,
details, embed, figcaption, figure,
footer, header, hgroup, keygen, mark,
output, rp, rt, ruby, source, summary,
wbr
new tag

section, video, progress, nav, meter,
time, aside, canvas, command,
datalist, details, embed, figcaption,
figure, footer, header, hgroup,
keygen, mark, output, rp, rt, ruby,
source, summary, wbr
new tag

  標題


  首頁      文章彙整   關於作者   其他




  部落格文章




  版權宣告
new tag

  <div></div>


  <div></div>




  <div></div>




  <div></div>
new tag

  <header></header>


  <nav></nav>




  <section></section>




  <footer></footer>
new tag

  <header></header>


  <div></div>


                 網頁更富有語意!
  <section></section>




  <footer></footer>
removed tags

acronym, applet, basefont, big, center,
dir, font, frame, frameset, isindex,
noframes, strike, tt
removed tags

acronym, applet, basefont, big,
center, dir, font, frame, frameset,
isindex, noframes, strike, tt
媒體播放

<audio>
播放音樂

<video>
播放影片
動畫製作

- Canvas API
- CSS 3
- Javascript

- http://bit.ly/QnNJ14
- http://bit.ly/QnNxyW
- http://bit.ly/TZZ9yd
Powerful CSS 3

圓角、旋轉、變形、移動、漸變...



- http://bit.ly/U002qB
- http://bit.ly/QnP5J3
- http://bit.ly/QnP5sE
- http://bit.ly/U00ULU
- http://bit.ly/U00kh9
More...




HTML5 - Wikipedia

HTML5 - Google 搜尋
something about HTML

 瀏覽器支援不嚴謹的 HTML 語法

<html>
     <head>
     </head>
     <body>
          <ol>
                 <li>資訊週加油阿! </li>
                 <li>傳情品可以幫我打折嗎?
</li>
               <li>不然傳給我也是 OK 的 :)
          </ol>
     </body>
</html>
something about HTML

 瀏覽器支援不嚴謹的 HTML 語法

<html>
     <head>
     </head>
     <body>
          <ol>
                 <li>資訊週加油阿! </li>
                 <li>傳情品可以幫我打折嗎?
</li>
                 <li>不然傳給我也是 OK 的 :)
</li>
          </ol>
     </body>
</html>
something about HTML

      01: <html>
      02:      <head>
      03:      </head>
      04:      <body>
      05:           <table border=1>
      06:                <tr>
      07:                     <td> r1,c1   <td>
      08:                     <td> r1,c2   </td>
      09:                </tr>
      10:                <tr>
      11:                     <td> r2,c1   </td>
      12:                     <td> r2,c2   </td>
      13:                </tr>
      14:           </table>
      15:      </body>
      16: </html>
something about HTML
something about HTML
01: <html>
02:      <head>
03:      </head>
04:      <body>
05:           <table border=1>
06:                <tr>
07:                     <td> r1,c1   <td>
08:                     <td> r1,c2   </td>
09:                </tr>
10:                <tr>
11:                     <td> r2,c1   </td>
12:                     <td> r2,c2   </td>
13:                </tr>
14:           </table>
15:      </body>
16: </html>
something about HTML

    01:   <html>
    02:       <head>
    03:       </head>
    04:       <body>
    05:            <table border=1>
    06:                 <tr>
    07:                     <td> r1,c1   </td><td></td>
    08:                     <td> r1,c2 </td>
    09:                </tr>
    10:                <tr>
    11:                     <td> r2,c1 </td>
    12:                     <td> r2,c2 </td>
    13:                </tr>
    14:           </table>
    15:      </body>
    16: </html>
About browser




How browsers work

[译]How browsers work
Browser
多用不同的瀏覽器測試!




Let's Kill IE6
Browser
IE is magic
看到的都跟別人不一樣!




              資料來源:http://engt.co/SZWheA
IE is magic

IE only!!!

只有 IE 看得到!
WTF...
Debuger

右鍵 → 檢查元素 (inspect element)
Firebug (Firefox addon)

Firebug
Firefox 3D view
a little tips of coding




 縮排
Indentation

01: <html>                                  01:   <html>
02:      <head>                             02:   <head>
03:      </head>                            03:   </head>
04:      <body>                             04:   <body>
05:            <table border=1>             05:   <table border=1>
06:                 <tr>                    06:   <tr>
07:                      <td> r1,c1         07:   <td> r1,c1 </td><td></td>
</td><td></td>                              08:   <td> r1,c2 </td>
08:                      <td> r1,c2 </td>   09:   </tr>
09:                 </tr>                   10:   <tr>
10:                 <tr>                    11:   <td> r2,c1 </td>
11:                      <td> r2,c1 </td>   12:   <td> r2,c2 </td>
12:                      <td> r2,c2 </td>   13:   </tr>
13:                 </tr>                   14:   </table>
14:            </table>                     15:   </body>
15:      </body>                            16:   </html>
16: </html>
a little tips of coding




編輯器
Editor
Notepad++ (Windows Only)

(g)Vim (Cross-platform)

Gedit (Cross-platform)

TextMate (Mac OS X)

Coda (Mac OS X)
a little tips of coding

              行號
  語法高亮標記
           其他...
Syntax Highlight
01: <html>                           01: <html>
02:      <head>                      02:      <head>
03:      </head>                     03:      </head>
04:      <body>                      04:      <body>
05:           <table border=1>       05:           <table border=1>
06:                <tr>              06:                <tr>
07:                     <td> r1,c1   07:                     <td> r1,c1
</td>                                </td>
08:                     <td> r1,c2   08:                     <td> r1,c2
</td>                                </td>
09:                </tr>             09:                </tr>
10:                <tr>              10:                <tr>
11:                     <td> r2,c1   11:                     <td> r2,c1
</td>                                </td>
12:                     <td> r2,c2   12:                     <td> r2,c2
</td>                                </td>
13:                </tr>             13:                </tr>
14:           </table>               14:           </table>
15:      </body>                     15:      </body>
16: </html>                          16: </html>
Zen Coding

zen-coding

- HTML 很冗
- 開了還要關
- 角括號裡面還要塞一些 attribute


    What The F*ck!!!!
Zen Coding

div#page>div.logo+ul#navigation>li*5>a


      <div id="page">
          <div class="logo"></div>
          <ul id="navigation">
               <li><a href=""></a></li>
               <li><a href=""></a></li>
               <li><a href=""></a></li>
               <li><a href=""></a></li>
               <li><a href=""></a></li>
          </ul>
      </div>               影片:http://vimeo.com/7405114
End

More Related Content

Similar to 20121019-HTML5

Create Web Pages by programming of your chice.pdf
Create Web Pages by programming of your chice.pdfCreate Web Pages by programming of your chice.pdf
Create Web Pages by programming of your chice.pdf
workingdev2003
 

Similar to 20121019-HTML5 (20)

HTML.pdf
HTML.pdfHTML.pdf
HTML.pdf
 
Troubleshooting Email Like a Pro
Troubleshooting Email Like a ProTroubleshooting Email Like a Pro
Troubleshooting Email Like a Pro
 
Basic html tags
Basic html tagsBasic html tags
Basic html tags
 
RESTful design
RESTful designRESTful design
RESTful design
 
Lectuer html1
Lectuer  html1Lectuer  html1
Lectuer html1
 
Web Development Course - HTML5 & CSS3 by RSOLUTIONS
Web Development Course - HTML5 & CSS3 by RSOLUTIONSWeb Development Course - HTML5 & CSS3 by RSOLUTIONS
Web Development Course - HTML5 & CSS3 by RSOLUTIONS
 
Create Web Pages by programming of your chice.pdf
Create Web Pages by programming of your chice.pdfCreate Web Pages by programming of your chice.pdf
Create Web Pages by programming of your chice.pdf
 
Doing More with LESS for CSS
Doing More with LESS for CSSDoing More with LESS for CSS
Doing More with LESS for CSS
 
Troubleshooting Email Like a Pro
Troubleshooting Email Like a ProTroubleshooting Email Like a Pro
Troubleshooting Email Like a Pro
 
Htmlppt
Htmlppt Htmlppt
Htmlppt
 
BITM3730 9-13.pptx
BITM3730 9-13.pptxBITM3730 9-13.pptx
BITM3730 9-13.pptx
 
AngularJS Basics with Example
AngularJS Basics with ExampleAngularJS Basics with Example
AngularJS Basics with Example
 
CSS3 Ready for Primetime
CSS3 Ready for PrimetimeCSS3 Ready for Primetime
CSS3 Ready for Primetime
 
Slicing the web
Slicing the webSlicing the web
Slicing the web
 
Full Stack Class in Marathahalli| AchieversIT
Full Stack Class in Marathahalli| AchieversITFull Stack Class in Marathahalli| AchieversIT
Full Stack Class in Marathahalli| AchieversIT
 
HTML Notes For demo_classes.pdf
HTML Notes For demo_classes.pdfHTML Notes For demo_classes.pdf
HTML Notes For demo_classes.pdf
 
HTML literals, the JSX of the platform
HTML literals, the JSX of the platformHTML literals, the JSX of the platform
HTML literals, the JSX of the platform
 
HTML web design_ an introduction to design
HTML web design_ an introduction to designHTML web design_ an introduction to design
HTML web design_ an introduction to design
 
HTML 5 Step By Step - Ebook
HTML 5 Step By Step - EbookHTML 5 Step By Step - Ebook
HTML 5 Step By Step - Ebook
 
Coding for entrepreneurs
Coding for entrepreneursCoding for entrepreneurs
Coding for entrepreneurs
 

More from Chih-Hsuan Kuo

[ACM-ICPC] Tree Isomorphism
[ACM-ICPC] Tree Isomorphism[ACM-ICPC] Tree Isomorphism
[ACM-ICPC] Tree Isomorphism
Chih-Hsuan Kuo
 
[ACM-ICPC] Dinic's Algorithm
[ACM-ICPC] Dinic's Algorithm[ACM-ICPC] Dinic's Algorithm
[ACM-ICPC] Dinic's Algorithm
Chih-Hsuan Kuo
 
[ACM-ICPC] Disjoint Set
[ACM-ICPC] Disjoint Set[ACM-ICPC] Disjoint Set
[ACM-ICPC] Disjoint Set
Chih-Hsuan Kuo
 

More from Chih-Hsuan Kuo (20)

Rust
RustRust
Rust
 
[Mozilla] content-select
[Mozilla] content-select[Mozilla] content-select
[Mozilla] content-select
 
Ownership System in Rust
Ownership System in RustOwnership System in Rust
Ownership System in Rust
 
在開始工作以前,我以為我會寫扣。
在開始工作以前,我以為我會寫扣。在開始工作以前,我以為我會寫扣。
在開始工作以前,我以為我會寫扣。
 
Effective Modern C++ - Item 35 & 36
Effective Modern C++ - Item 35 & 36Effective Modern C++ - Item 35 & 36
Effective Modern C++ - Item 35 & 36
 
Use C++ to Manipulate mozSettings in Gecko
Use C++ to Manipulate mozSettings in GeckoUse C++ to Manipulate mozSettings in Gecko
Use C++ to Manipulate mozSettings in Gecko
 
Pocket Authentication with OAuth on Firefox OS
Pocket Authentication with OAuth on Firefox OSPocket Authentication with OAuth on Firefox OS
Pocket Authentication with OAuth on Firefox OS
 
Necko walkthrough
Necko walkthroughNecko walkthrough
Necko walkthrough
 
Protocol handler in Gecko
Protocol handler in GeckoProtocol handler in Gecko
Protocol handler in Gecko
 
面試面試面試,因為很重要所以要說三次!
面試面試面試,因為很重要所以要說三次!面試面試面試,因為很重要所以要說三次!
面試面試面試,因為很重要所以要說三次!
 
應徵軟體工程師
應徵軟體工程師應徵軟體工程師
應徵軟體工程師
 
面試心得分享
面試心得分享面試心得分享
面試心得分享
 
Windows 真的不好用...
Windows 真的不好用...Windows 真的不好用...
Windows 真的不好用...
 
Python @Wheel Lab
Python @Wheel LabPython @Wheel Lab
Python @Wheel Lab
 
Introduction to VP8
Introduction to VP8Introduction to VP8
Introduction to VP8
 
Python @NCKU CSIE
Python @NCKU CSIEPython @NCKU CSIE
Python @NCKU CSIE
 
[ACM-ICPC] Tree Isomorphism
[ACM-ICPC] Tree Isomorphism[ACM-ICPC] Tree Isomorphism
[ACM-ICPC] Tree Isomorphism
 
[ACM-ICPC] Dinic's Algorithm
[ACM-ICPC] Dinic's Algorithm[ACM-ICPC] Dinic's Algorithm
[ACM-ICPC] Dinic's Algorithm
 
[ACM-ICPC] Disjoint Set
[ACM-ICPC] Disjoint Set[ACM-ICPC] Disjoint Set
[ACM-ICPC] Disjoint Set
 
[ACM-ICPC] Traversal
[ACM-ICPC] Traversal[ACM-ICPC] Traversal
[ACM-ICPC] Traversal
 

Recently uploaded

Recently uploaded (20)

HTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation StrategiesHTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation Strategies
 
Top 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live StreamsTop 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live Streams
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 
Manulife - Insurer Innovation Award 2024
Manulife - Insurer Innovation Award 2024Manulife - Insurer Innovation Award 2024
Manulife - Insurer Innovation Award 2024
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024
 
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 

20121019-HTML5

  • 2. HTML 5 當前版本 HTML 4.01 HTML 5:含 HTML、CSS 以及 Javascript 尚未正式推出,大多數主流瀏覽器支援部份功 能,至於 IE... HTML5 & CSS3 Support
  • 3. new tags section, video, progress, nav, meter, time, aside, canvas, command, datalist, details, embed, figcaption, figure, footer, header, hgroup, keygen, mark, output, rp, rt, ruby, source, summary, wbr
  • 4. new tag section, video, progress, nav, meter, time, aside, canvas, command, datalist, details, embed, figcaption, figure, footer, header, hgroup, keygen, mark, output, rp, rt, ruby, source, summary, wbr
  • 5. new tag 標題 首頁 文章彙整 關於作者 其他 部落格文章 版權宣告
  • 6. new tag <div></div> <div></div> <div></div> <div></div>
  • 7. new tag <header></header> <nav></nav> <section></section> <footer></footer>
  • 8. new tag <header></header> <div></div> 網頁更富有語意! <section></section> <footer></footer>
  • 9.
  • 10.
  • 11. removed tags acronym, applet, basefont, big, center, dir, font, frame, frameset, isindex, noframes, strike, tt
  • 12. removed tags acronym, applet, basefont, big, center, dir, font, frame, frameset, isindex, noframes, strike, tt
  • 13.
  • 15. 動畫製作 - Canvas API - CSS 3 - Javascript - http://bit.ly/QnNJ14 - http://bit.ly/QnNxyW - http://bit.ly/TZZ9yd
  • 16.
  • 17. Powerful CSS 3 圓角、旋轉、變形、移動、漸變... - http://bit.ly/U002qB - http://bit.ly/QnP5J3 - http://bit.ly/QnP5sE - http://bit.ly/U00ULU - http://bit.ly/U00kh9
  • 19. something about HTML 瀏覽器支援不嚴謹的 HTML 語法 <html> <head> </head> <body> <ol> <li>資訊週加油阿! </li> <li>傳情品可以幫我打折嗎? </li> <li>不然傳給我也是 OK 的 :) </ol> </body> </html>
  • 20. something about HTML 瀏覽器支援不嚴謹的 HTML 語法 <html> <head> </head> <body> <ol> <li>資訊週加油阿! </li> <li>傳情品可以幫我打折嗎? </li> <li>不然傳給我也是 OK 的 :) </li> </ol> </body> </html>
  • 21. something about HTML 01: <html> 02: <head> 03: </head> 04: <body> 05: <table border=1> 06: <tr> 07: <td> r1,c1 <td> 08: <td> r1,c2 </td> 09: </tr> 10: <tr> 11: <td> r2,c1 </td> 12: <td> r2,c2 </td> 13: </tr> 14: </table> 15: </body> 16: </html>
  • 23. something about HTML 01: <html> 02: <head> 03: </head> 04: <body> 05: <table border=1> 06: <tr> 07: <td> r1,c1 <td> 08: <td> r1,c2 </td> 09: </tr> 10: <tr> 11: <td> r2,c1 </td> 12: <td> r2,c2 </td> 13: </tr> 14: </table> 15: </body> 16: </html>
  • 24. something about HTML 01: <html> 02: <head> 03: </head> 04: <body> 05: <table border=1> 06: <tr> 07: <td> r1,c1 </td><td></td> 08: <td> r1,c2 </td> 09: </tr> 10: <tr> 11: <td> r2,c1 </td> 12: <td> r2,c2 </td> 13: </tr> 14: </table> 15: </body> 16: </html>
  • 25. About browser How browsers work [译]How browsers work
  • 28. IE is magic 看到的都跟別人不一樣! 資料來源:http://engt.co/SZWheA
  • 29. IE is magic IE only!!! 只有 IE 看得到! WTF...
  • 30. Debuger 右鍵 → 檢查元素 (inspect element)
  • 33. a little tips of coding 縮排
  • 34. Indentation 01: <html> 01: <html> 02: <head> 02: <head> 03: </head> 03: </head> 04: <body> 04: <body> 05: <table border=1> 05: <table border=1> 06: <tr> 06: <tr> 07: <td> r1,c1 07: <td> r1,c1 </td><td></td> </td><td></td> 08: <td> r1,c2 </td> 08: <td> r1,c2 </td> 09: </tr> 09: </tr> 10: <tr> 10: <tr> 11: <td> r2,c1 </td> 11: <td> r2,c1 </td> 12: <td> r2,c2 </td> 12: <td> r2,c2 </td> 13: </tr> 13: </tr> 14: </table> 14: </table> 15: </body> 15: </body> 16: </html> 16: </html>
  • 35. a little tips of coding 編輯器
  • 36. Editor Notepad++ (Windows Only) (g)Vim (Cross-platform) Gedit (Cross-platform) TextMate (Mac OS X) Coda (Mac OS X)
  • 37. a little tips of coding 行號 語法高亮標記 其他...
  • 38. Syntax Highlight 01: <html> 01: <html> 02: <head> 02: <head> 03: </head> 03: </head> 04: <body> 04: <body> 05: <table border=1> 05: <table border=1> 06: <tr> 06: <tr> 07: <td> r1,c1 07: <td> r1,c1 </td> </td> 08: <td> r1,c2 08: <td> r1,c2 </td> </td> 09: </tr> 09: </tr> 10: <tr> 10: <tr> 11: <td> r2,c1 11: <td> r2,c1 </td> </td> 12: <td> r2,c2 12: <td> r2,c2 </td> </td> 13: </tr> 13: </tr> 14: </table> 14: </table> 15: </body> 15: </body> 16: </html> 16: </html>
  • 39. Zen Coding zen-coding - HTML 很冗 - 開了還要關 - 角括號裡面還要塞一些 attribute What The F*ck!!!!
  • 40. Zen Coding div#page>div.logo+ul#navigation>li*5>a <div id="page"> <div class="logo"></div> <ul id="navigation"> <li><a href=""></a></li> <li><a href=""></a></li> <li><a href=""></a></li> <li><a href=""></a></li> <li><a href=""></a></li> </ul> </div> 影片:http://vimeo.com/7405114
  • 41. End