HTML5 & IE
-
Upload
emad-alashi -
Category
Technology
-
view
1.369 -
download
0
description
Transcript of HTML5 & IE
M i c r o s o f t | O p e n D o o r
Who I am
• Emad Al Ashi العشي عماد• Technical Team Leader – eSense Software• Jordev Lead• MVP 2011 ASP.NET/IIS
• www.EmadAshi.com
• www.DotNetArabi.com
• @EmadAshi
M i c r o s o f t | O p e n D o o r
DotNetArabi
M i c r o s o f t | O p e n D o o r
HTML5 & IE
By Emad Alashi
HTML5 & IE
M i c r o s o f t | O p e n D o o r
Agenda
• What is HTML5• HTML5 general features in IE9• HTML5 IE10• Working with HTML5
M i c r o s o f t | O p e n D o o r
W3C
WHATWGWeb Hypertext Application Technology Working Group
World Wide Web Consortium
What is HTML5?
M i c r o s o f t | O p e n D o o r
HTML
CSS3
JS
SVG
What is HTML5?
M i c r o s o f t | O p e n D o o r
Platform Independent
Standards
Rich User Experience
Less Bandwidth
Semantically Connected Content
The Next Web
Device Independent
What does HTML5 bring?
M i c r o s o f t | O p e n D o o r
Candidate Recommendation 2012
W3C Recommendation 2022
What is HTML5
M i c r o s o f t | O p e n D o o r
Site-ready HTML5 IE9
CTP’s IE10
Test Cases to W3C
HTML5 Lab
Microsoft’s Approach for HTML5 (IE)
M i c r o s o f t | O p e n D o o r
Microsoft’s Approach for HTML5 (Tools)
Visual Studio 2010 SP1:
• HTML5 document type validation• IntilleSense
• HTML5 elements and tags• JavaScript API’s• CSS3
• ASP.NET MVC 3 Tool Update: Modernizr
M i c r o s o f t | O p e n D o o r
HTML5 on IE9
M i c r o s o f t | O p e n D o o r
Semantic Web
<header>
<nav> <section>
<article> <article>
<footer>
HTML5 on IE9
M i c r o s o f t | O p e n D o o r
Video & AudioHTML5 on IE9
• Video codec's• H.264• MPEG 4
• Audio codec's• MP3• AAC
M i c r o s o f t | O p e n D o o r
Demo
Video & AudioHTML5 on IE9
M i c r o s o f t | O p e n D o o r
• Scalable Vector Graphics• vector-based• XML format• DOM and CSS• Open Standard
SVGHTML5 on IE9
M i c r o s o f t | O p e n D o o r
Canvas
<canvas id="myCanvas" width="400" height="200" >Your browser does not support the canvas element.</canvas>
<script type="text/javascript">var c = document.getElementById("myCanvas");var cxt = c.getContext("2d");cxt.fillStyle = "#FF0000";cxt.fillRect(0,0,150,75);</script>
HTML5 on IE9
M i c r o s o f t | O p e n D o o r
Canvas
Demo1
Demo2
HTML5 on IE9
M i c r o s o f t | O p e n D o o r
Geolocation
Microsoft Location Service
HTML5 on IE9
M i c r o s o f t | O p e n D o o r
Geolocationnavigator.geolocation.getCurrentPosition(foundIt, failed);
Function foundIt(pos){
pos.coords.latitude;pos.coords.longitude;
}
Function failed(){
alert(‘Hahahaaaawz!’);}
HTML5 on IE9
M i c r o s o f t | O p e n D o o r
Geolocation
Demo
HTML5 on IE9
M i c r o s o f t | O p e n D o o r
• Key-value pairs• String type (Serialization)• Local:
• Cross windows• Closed windows
• Session:• Per--window• Window life time
Web StorageHTML5 on IE9
M i c r o s o f t | O p e n D o o r
Web Storage
localStorage.getItem(‘key’)localStorage.setItem(‘key’)
sessionStorage.getItem(‘key’)sessionStorage.setItem(‘key’)
HTML5 on IE9
M i c r o s o f t | O p e n D o o r
• width• height• orientation• resolution• …
CSS3 MediaQuery@media screen and (min-width: 400px) and (max-width: 800px) { … }
HTML5 on IE9
M i c r o s o f t | O p e n D o o r
CSS3 MediaQuery
Demo
HTML5 on IE9
M i c r o s o f t | O p e n D o o r
HTML5
<!DOCTYPE html>
HTML5 on IE9
M i c r o s o f t | O p e n D o o r
Graphic AcceleratorHTML5 on IE9
M i c r o s o f t | O p e n D o o r
• Compiled• Type Optimizations• Fast Interpreter• Library Optimizations
JavaScript EngineChakra
HTML5 on IE9
M i c r o s o f t | O p e n D o o r
What’s cooking? IE10
M i c r o s o f t | O p e n D o o r
IE10HTML5 on IE10
• Forms• Input types• Form elements• Form attributes
• Web Workers• File API• Web Socekts• IndexedDB• …
M i c r o s o f t | O p e n D o o r
Working with HTML5
M i c r o s o f t | O p e n D o o r
Working with HTML5
• User Agent sniffing• Manual Feature Detection
• !!document.createElement('canvas').getContext
• Modernizr:
Modernizr.load({ test: Modernizr.geolocation, yep : 'geo.js', nope: 'geo-polyfill.js' });
M i c r o s o f t | O p e n D o o r
How to decide
• Your needs• The environment• Feature spread among browsers• How to polyfill
M i c r o s o f t | O p e n D o o r
Interesting sites
• beautyoftheweb.com• caniuse.com• ietestdrive.com• html5labs.com• html5demos.com• html5rocks.com• html5readiness.com
• Internet Explorer 10 Guide for Developers
M i c r o s o f t | O p e n D o o r
References
• http://msdn.microsoft.com/en-us/magazine/hh335062.aspx• http://msdn.microsoft.com/en-us/magazine/hh394148.aspx• http://www.w3schools.com/html5/default.asp• The Architecture of Full Hardware Acceleration of All Web Page Content• http://html5doctor.com/• Wikipedia.org (search for all terms)
M i c r o s o f t | O p e n D o o r
HTML5 and IE
Thank You
Q & A
www.EmadAshi.comwww.DotNetArabi.com
@Emadashi