42. EXAMPLE OF
COMPATIBILITY
<progress>
<progress value=75 max=100>
...[75 / 100]</progress>
...[75 / 100]
43.
44. “This specification evolves HTML and
its related APIs to ease the authoring of
Web-based applications.”
HTML5 Draft Standard - 13 Nov 2009 (Ian Hickson)
46. HTML5 & API
• 2D & 3D
o HTML5 <canvas> element and API, SVG
•
o HTML5 <video>/<audio> element and API
• Web
o HTML5 <html manifest=attribute> and ApplicationCache
•
o HTML5 Cross Document Messaging, XHR Level2
•
o Web Storage, Web SQL Database, Indexed Database API
•
o Web Workers
•
Server-Sent Events, Web Sockets
o
• OS
o File API, Drag & Drop API
48. HTML5 <canvas> element and API
• <canvas>
var canvas = document.getElementsById("c1");
var context = canvas.getContext("2d");
context.drawImage(...)
• 2
o Canvas 2D Context 2 W3C
( ID "2d"
o WebGL 3 Khronos
ID "webgl"
52. HTML5 <video>/<audio> element and API
• <video> <audio>
• src <source> URL
<video src="sample.ogv"></video>
<video>
<source src="sample.ogv">
</video>
• JavaScript API DOM CSS
OK