HTML5 Training in Hyderabad, BEST HTML5 Training Institute, HTML5 and CSS3 Training in Hyderabad
HTML5 and friends - standards>next Manchester 24.11.2010
-
Upload
patrick-lauke -
Category
Technology
-
view
2.184 -
download
1
Transcript of HTML5 and friends - standards>next Manchester 24.11.2010
![Page 1: HTML5 and friends - standards>next Manchester 24.11.2010](https://reader033.fdocuments.in/reader033/viewer/2022060109/5555c8ebd8b42a711f8b4637/html5/thumbnails/1.jpg)
HTML5 and friends
Patrick H. Lauke / standards>next / Manchester / 24 November 2010
CONTEXTUALISING THE NEW TECHNOLOGIES
![Page 2: HTML5 and friends - standards>next Manchester 24.11.2010](https://reader033.fdocuments.in/reader033/viewer/2022060109/5555c8ebd8b42a711f8b4637/html5/thumbnails/2.jpg)
Web Evangelist at Opera
![Page 3: HTML5 and friends - standards>next Manchester 24.11.2010](https://reader033.fdocuments.in/reader033/viewer/2022060109/5555c8ebd8b42a711f8b4637/html5/thumbnails/3.jpg)
...should I use HTML5 today?
![Page 5: HTML5 and friends - standards>next Manchester 24.11.2010](https://reader033.fdocuments.in/reader033/viewer/2022060109/5555c8ebd8b42a711f8b4637/html5/thumbnails/5.jpg)
"there is already a lot of excitement for HTML5, but it’s a little too early to deploy it because we’re running into interoperability issues."
Philippe Le Hegaret, W3C interaction domain leader
blogs.techrepublic.com.com/hiner/?p=6369
![Page 6: HTML5 and friends - standards>next Manchester 24.11.2010](https://reader033.fdocuments.in/reader033/viewer/2022060109/5555c8ebd8b42a711f8b4637/html5/thumbnails/6.jpg)
http://www.flickr.com/photos/24374884@N08/4603715307/
![Page 7: HTML5 and friends - standards>next Manchester 24.11.2010](https://reader033.fdocuments.in/reader033/viewer/2022060109/5555c8ebd8b42a711f8b4637/html5/thumbnails/7.jpg)
HTML5…without the hype?
![Page 8: HTML5 and friends - standards>next Manchester 24.11.2010](https://reader033.fdocuments.in/reader033/viewer/2022060109/5555c8ebd8b42a711f8b4637/html5/thumbnails/8.jpg)
A brief history of HTML5
1999 HTML 4.012000 XHTML 1.0
![Page 9: HTML5 and friends - standards>next Manchester 24.11.2010](https://reader033.fdocuments.in/reader033/viewer/2022060109/5555c8ebd8b42a711f8b4637/html5/thumbnails/9.jpg)
2004 W3C focus on XHTML 2.0…the future is XML-based!
http://www.flickr.com/photos/craiga/17071467/
![Page 10: HTML5 and friends - standards>next Manchester 24.11.2010](https://reader033.fdocuments.in/reader033/viewer/2022060109/5555c8ebd8b42a711f8b4637/html5/thumbnails/10.jpg)
WHATWGWeb Hypertext Application Technology Working Group
![Page 11: HTML5 and friends - standards>next Manchester 24.11.2010](https://reader033.fdocuments.in/reader033/viewer/2022060109/5555c8ebd8b42a711f8b4637/html5/thumbnails/11.jpg)
2007 W3C HTML5 WG
![Page 12: HTML5 and friends - standards>next Manchester 24.11.2010](https://reader033.fdocuments.in/reader033/viewer/2022060109/5555c8ebd8b42a711f8b4637/html5/thumbnails/12.jpg)
“...extending the language to better support Web applications [...] This puts HTML in direct competition with other technologies[...] , in particular Flash and Silverlight.”
Ian Hickson, Editor of HTML5http://lists.w3.org/Archives/Public/public-html/2009Jan/0215.html
![Page 13: HTML5 and friends - standards>next Manchester 24.11.2010](https://reader033.fdocuments.in/reader033/viewer/2022060109/5555c8ebd8b42a711f8b4637/html5/thumbnails/13.jpg)
HTML5 does not replace HTML 4.01 / XHTML 1.0
![Page 14: HTML5 and friends - standards>next Manchester 24.11.2010](https://reader033.fdocuments.in/reader033/viewer/2022060109/5555c8ebd8b42a711f8b4637/html5/thumbnails/14.jpg)
HTML5 has more bling!
![Page 15: HTML5 and friends - standards>next Manchester 24.11.2010](https://reader033.fdocuments.in/reader033/viewer/2022060109/5555c8ebd8b42a711f8b4637/html5/thumbnails/15.jpg)
HTML5 specification forbrowser developers
(how to interpret markup/code – no more reverse engineering)
for authors: HTML5 differences from HTML4http://www.w3.org/TR/html5-diff/
![Page 16: HTML5 and friends - standards>next Manchester 24.11.2010](https://reader033.fdocuments.in/reader033/viewer/2022060109/5555c8ebd8b42a711f8b4637/html5/thumbnails/16.jpg)
1. syntax/semantic2. forms3. multimedia
![Page 17: HTML5 and friends - standards>next Manchester 24.11.2010](https://reader033.fdocuments.in/reader033/viewer/2022060109/5555c8ebd8b42a711f8b4637/html5/thumbnails/17.jpg)
1. syntax/semantic2. forms3. multimedia
![Page 18: HTML5 and friends - standards>next Manchester 24.11.2010](https://reader033.fdocuments.in/reader033/viewer/2022060109/5555c8ebd8b42a711f8b4637/html5/thumbnails/18.jpg)
HTML5 standardisescurrent browser behaviour
(e.g. “relaxed” coding rules)
![Page 19: HTML5 and friends - standards>next Manchester 24.11.2010](https://reader033.fdocuments.in/reader033/viewer/2022060109/5555c8ebd8b42a711f8b4637/html5/thumbnails/19.jpg)
the dirty secret of the doctype
![Page 20: HTML5 and friends - standards>next Manchester 24.11.2010](https://reader033.fdocuments.in/reader033/viewer/2022060109/5555c8ebd8b42a711f8b4637/html5/thumbnails/20.jpg)
XHTML 1.0<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
![Page 21: HTML5 and friends - standards>next Manchester 24.11.2010](https://reader033.fdocuments.in/reader033/viewer/2022060109/5555c8ebd8b42a711f8b4637/html5/thumbnails/21.jpg)
HTML5<!DOCTYPE html>
![Page 22: HTML5 and friends - standards>next Manchester 24.11.2010](https://reader033.fdocuments.in/reader033/viewer/2022060109/5555c8ebd8b42a711f8b4637/html5/thumbnails/22.jpg)
<meta charset=”utf-8” />
<meta charset=utf-8>
<MeTa CHarSet=utf-8>
![Page 23: HTML5 and friends - standards>next Manchester 24.11.2010](https://reader033.fdocuments.in/reader033/viewer/2022060109/5555c8ebd8b42a711f8b4637/html5/thumbnails/23.jpg)
<style type=”text/css”></style>
<script type=”text/javascript”></script>
![Page 24: HTML5 and friends - standards>next Manchester 24.11.2010](https://reader033.fdocuments.in/reader033/viewer/2022060109/5555c8ebd8b42a711f8b4637/html5/thumbnails/24.jpg)
<style type=”text/css”></style>
<script type=”text/javascript”></script>
![Page 25: HTML5 and friends - standards>next Manchester 24.11.2010](https://reader033.fdocuments.in/reader033/viewer/2022060109/5555c8ebd8b42a711f8b4637/html5/thumbnails/25.jpg)
<!doctype html><title>Minimal HTML5</title>
![Page 26: HTML5 and friends - standards>next Manchester 24.11.2010](https://reader033.fdocuments.in/reader033/viewer/2022060109/5555c8ebd8b42a711f8b4637/html5/thumbnails/26.jpg)
new elemente for more accurate semantics
![Page 27: HTML5 and friends - standards>next Manchester 24.11.2010](https://reader033.fdocuments.in/reader033/viewer/2022060109/5555c8ebd8b42a711f8b4637/html5/thumbnails/27.jpg)
![Page 28: HTML5 and friends - standards>next Manchester 24.11.2010](https://reader033.fdocuments.in/reader033/viewer/2022060109/5555c8ebd8b42a711f8b4637/html5/thumbnails/28.jpg)
Top 20 class names1. footer 11. button
2. menu 12. main
3. style1 13. style3
4. msonormal 14. small
5. text 15. nav
6. content 16. clear
7. title 17. search
8. style2 18. style4
9. header 19. logo
10. copyright 20. body
http://devfiles.myopera.com/articles/572/classlist-url.htm
![Page 29: HTML5 and friends - standards>next Manchester 24.11.2010](https://reader033.fdocuments.in/reader033/viewer/2022060109/5555c8ebd8b42a711f8b4637/html5/thumbnails/29.jpg)
Top 20 id names1. footer 11. search
2. content 12. nav
3. header 13. wrapper
4. logo 14. top
5. container 15. table2
6. main 16. layer2
7. table1 17. sidebar
8. menu 18. image1
9. layer1 19. banner
10. autonumber1 20. navigation
http://devfiles.myopera.com/articles/572/idlist-url.htm
![Page 30: HTML5 and friends - standards>next Manchester 24.11.2010](https://reader033.fdocuments.in/reader033/viewer/2022060109/5555c8ebd8b42a711f8b4637/html5/thumbnails/30.jpg)
![Page 31: HTML5 and friends - standards>next Manchester 24.11.2010](https://reader033.fdocuments.in/reader033/viewer/2022060109/5555c8ebd8b42a711f8b4637/html5/thumbnails/31.jpg)
![Page 32: HTML5 and friends - standards>next Manchester 24.11.2010](https://reader033.fdocuments.in/reader033/viewer/2022060109/5555c8ebd8b42a711f8b4637/html5/thumbnails/32.jpg)
unambiguous and machine readable...e.g. screenreaders?
![Page 33: HTML5 and friends - standards>next Manchester 24.11.2010](https://reader033.fdocuments.in/reader033/viewer/2022060109/5555c8ebd8b42a711f8b4637/html5/thumbnails/33.jpg)
new and old browsers “support” these(although some need a little extra help)
header, footer, … { display: block; }
![Page 34: HTML5 and friends - standards>next Manchester 24.11.2010](https://reader033.fdocuments.in/reader033/viewer/2022060109/5555c8ebd8b42a711f8b4637/html5/thumbnails/34.jpg)
Internet Explorer <9 needs extra training wheels
document.createElement('header');document.createElement('footer');…
http://html5doctor.com/how-to-get-html5-working-in-ie-and-firefox-2
![Page 35: HTML5 and friends - standards>next Manchester 24.11.2010](https://reader033.fdocuments.in/reader033/viewer/2022060109/5555c8ebd8b42a711f8b4637/html5/thumbnails/35.jpg)
1. syntax/semantics2. forms3. multimedia
![Page 36: HTML5 and friends - standards>next Manchester 24.11.2010](https://reader033.fdocuments.in/reader033/viewer/2022060109/5555c8ebd8b42a711f8b4637/html5/thumbnails/36.jpg)
improved form elementsbecause the web is more interactive
![Page 38: HTML5 and friends - standards>next Manchester 24.11.2010](https://reader033.fdocuments.in/reader033/viewer/2022060109/5555c8ebd8b42a711f8b4637/html5/thumbnails/38.jpg)
rich form elements – without faking them in JS
<input type=”date”><input type=”time”><input type=”month”><input type=”week”><input type=”datetime” … ><input type=”range”><input type=”number”>
<input type=”file” multiple>
<input … autofocus><input … autocomplete>
![Page 39: HTML5 and friends - standards>next Manchester 24.11.2010](https://reader033.fdocuments.in/reader033/viewer/2022060109/5555c8ebd8b42a711f8b4637/html5/thumbnails/39.jpg)
types und attributes withbuilt-in validation<input … required><input type=”tel”><input type=”email”><input type=”url”><input … pattern="[a-z]{3}[0-9]{3}">
![Page 40: HTML5 and friends - standards>next Manchester 24.11.2010](https://reader033.fdocuments.in/reader033/viewer/2022060109/5555c8ebd8b42a711f8b4637/html5/thumbnails/40.jpg)
![Page 41: HTML5 and friends - standards>next Manchester 24.11.2010](https://reader033.fdocuments.in/reader033/viewer/2022060109/5555c8ebd8b42a711f8b4637/html5/thumbnails/41.jpg)
![Page 42: HTML5 and friends - standards>next Manchester 24.11.2010](https://reader033.fdocuments.in/reader033/viewer/2022060109/5555c8ebd8b42a711f8b4637/html5/thumbnails/42.jpg)
1. syntax/semantics2. forms3. multimedia
![Page 43: HTML5 and friends - standards>next Manchester 24.11.2010](https://reader033.fdocuments.in/reader033/viewer/2022060109/5555c8ebd8b42a711f8b4637/html5/thumbnails/43.jpg)
making your site Fonzie compliant...
![Page 44: HTML5 and friends - standards>next Manchester 24.11.2010](https://reader033.fdocuments.in/reader033/viewer/2022060109/5555c8ebd8b42a711f8b4637/html5/thumbnails/44.jpg)
<video>
![Page 45: HTML5 and friends - standards>next Manchester 24.11.2010](https://reader033.fdocuments.in/reader033/viewer/2022060109/5555c8ebd8b42a711f8b4637/html5/thumbnails/45.jpg)
Adobe Flash currently most commonvideo delivery mechanism
![Page 46: HTML5 and friends - standards>next Manchester 24.11.2010](https://reader033.fdocuments.in/reader033/viewer/2022060109/5555c8ebd8b42a711f8b4637/html5/thumbnails/46.jpg)
<object width="425" height="344"><param name="movie"
value="http://www.youtube.com/v/9sEI1AUFJKw&hl=en&fs=1&"></param>
<param name="allowFullScreen" value="true"></param>
<param name="allowscriptaccess" value="always"></param>
<embed src="http://www.youtube.com/v/9sEI1AUFJKw&hl=en&fs=1&" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="425" height="344"></embed></object>
![Page 47: HTML5 and friends - standards>next Manchester 24.11.2010](https://reader033.fdocuments.in/reader033/viewer/2022060109/5555c8ebd8b42a711f8b4637/html5/thumbnails/47.jpg)
<video src="video.webm" controls autoplay loop preload poster="poster.jpg" width="320" height="240"> <a href="video.webm">Download movie</a></video>
![Page 48: HTML5 and friends - standards>next Manchester 24.11.2010](https://reader033.fdocuments.in/reader033/viewer/2022060109/5555c8ebd8b42a711f8b4637/html5/thumbnails/48.jpg)
video as native object
● behaves like any other HTML element● keyboard accessibility out-of-the-box
![Page 49: HTML5 and friends - standards>next Manchester 24.11.2010](https://reader033.fdocuments.in/reader033/viewer/2022060109/5555c8ebd8b42a711f8b4637/html5/thumbnails/49.jpg)
powerful (simple) API
![Page 51: HTML5 and friends - standards>next Manchester 24.11.2010](https://reader033.fdocuments.in/reader033/viewer/2022060109/5555c8ebd8b42a711f8b4637/html5/thumbnails/51.jpg)
controlling <video> with JavaScript
var v = document.getElementById('player');
v.play();v.pause();v.volume = … ;v.currentTime = … ;…
![Page 52: HTML5 and friends - standards>next Manchester 24.11.2010](https://reader033.fdocuments.in/reader033/viewer/2022060109/5555c8ebd8b42a711f8b4637/html5/thumbnails/52.jpg)
events fired by <video>
var v = document.getElementById('player');
v.addEventListener('loadeddata', function() { … }, true)v.addEventListener('play', function() { … }, true)v.addEventListener('pause', function() { … }, true)v.addEventListener('timeupdate', function() { … }, true)v.addEventListener('ended', function() { … }, true)…
![Page 53: HTML5 and friends - standards>next Manchester 24.11.2010](https://reader033.fdocuments.in/reader033/viewer/2022060109/5555c8ebd8b42a711f8b4637/html5/thumbnails/53.jpg)
video formatsthe big debate?
![Page 54: HTML5 and friends - standards>next Manchester 24.11.2010](https://reader033.fdocuments.in/reader033/viewer/2022060109/5555c8ebd8b42a711f8b4637/html5/thumbnails/54.jpg)
HTML5 does not specify video container/codec
(same as with images in HTML 4?)
![Page 55: HTML5 and friends - standards>next Manchester 24.11.2010](https://reader033.fdocuments.in/reader033/viewer/2022060109/5555c8ebd8b42a711f8b4637/html5/thumbnails/55.jpg)
MP4 / H.264
ubiquitous, patent encumbered, licensing/royalties
![Page 56: HTML5 and friends - standards>next Manchester 24.11.2010](https://reader033.fdocuments.in/reader033/viewer/2022060109/5555c8ebd8b42a711f8b4637/html5/thumbnails/56.jpg)
Ogg Theora
free and open, no licensing feesnot many tools for it, not web optimised
![Page 57: HTML5 and friends - standards>next Manchester 24.11.2010](https://reader033.fdocuments.in/reader033/viewer/2022060109/5555c8ebd8b42a711f8b4637/html5/thumbnails/57.jpg)
WebM / VP8
open and royalty-free, web-optimisedsupport by hardware and software vendors
![Page 58: HTML5 and friends - standards>next Manchester 24.11.2010](https://reader033.fdocuments.in/reader033/viewer/2022060109/5555c8ebd8b42a711f8b4637/html5/thumbnails/58.jpg)
providing multiple sources<video controls autoplay poster="…" width="…" height="…">
<source src="movie.mp4" type="video/mp4" /><source src="movie.webm" type="video/webm" /><source src="movie.ogv" type="video/ogg" /><!-- fallback content -->
</video>
![Page 59: HTML5 and friends - standards>next Manchester 24.11.2010](https://reader033.fdocuments.in/reader033/viewer/2022060109/5555c8ebd8b42a711f8b4637/html5/thumbnails/59.jpg)
flash fallback for older browsershttp://camendesign.com/code/video_for_everybody
![Page 60: HTML5 and friends - standards>next Manchester 24.11.2010](https://reader033.fdocuments.in/reader033/viewer/2022060109/5555c8ebd8b42a711f8b4637/html5/thumbnails/60.jpg)
<video controls autoplay poster="…" width="…" height="…"><source src="movie.mp4" type="video/mp4" /><source src="movie.webm" type="video/webm" /><source src="movie.ogv" type="video/ogg" />
<object width="…" height="…" type="application/x-shockwave-flash" data="player.swf">
<param name="movie" value="player.swf" /><param name="flashvars" value=" … file=movie.mp4" /><!-- fallback content -->
</object>
</video>
![Page 61: HTML5 and friends - standards>next Manchester 24.11.2010](https://reader033.fdocuments.in/reader033/viewer/2022060109/5555c8ebd8b42a711f8b4637/html5/thumbnails/61.jpg)
<audio>
![Page 62: HTML5 and friends - standards>next Manchester 24.11.2010](https://reader033.fdocuments.in/reader033/viewer/2022060109/5555c8ebd8b42a711f8b4637/html5/thumbnails/62.jpg)
audio...exactly the same as video
<audio src=”music.mp3” controls autoplay … ></audio>
<audio controls autoplay><source src="music.mp3" type="audio/mpeg" /><source src="music.oga" type="audio/ogg" /><!-- fallback content -->
</audio>
formats: MP3 vs Ogg Vorbis (vs WAV)
![Page 63: HTML5 and friends - standards>next Manchester 24.11.2010](https://reader033.fdocuments.in/reader033/viewer/2022060109/5555c8ebd8b42a711f8b4637/html5/thumbnails/63.jpg)
<canvas>
![Page 64: HTML5 and friends - standards>next Manchester 24.11.2010](https://reader033.fdocuments.in/reader033/viewer/2022060109/5555c8ebd8b42a711f8b4637/html5/thumbnails/64.jpg)
canvas = “scriptable images”
<canvas width="…" height="…"></canvas>
![Page 65: HTML5 and friends - standards>next Manchester 24.11.2010](https://reader033.fdocuments.in/reader033/viewer/2022060109/5555c8ebd8b42a711f8b4637/html5/thumbnails/65.jpg)
canvas has standard API methods for drawing
ctx = canvas.getContext("2d");
ctx.fillRect(x, y, width, height);ctx.beginPath();ctx.moveTo(x, y);ctx.lineTo(x, y);ctx.bezierCurveTo(x1, y1, x2, y2, c1, c2);
ctx.drawImage(…);
![Page 66: HTML5 and friends - standards>next Manchester 24.11.2010](https://reader033.fdocuments.in/reader033/viewer/2022060109/5555c8ebd8b42a711f8b4637/html5/thumbnails/66.jpg)
![Page 67: HTML5 and friends - standards>next Manchester 24.11.2010](https://reader033.fdocuments.in/reader033/viewer/2022060109/5555c8ebd8b42a711f8b4637/html5/thumbnails/67.jpg)
![Page 68: HTML5 and friends - standards>next Manchester 24.11.2010](https://reader033.fdocuments.in/reader033/viewer/2022060109/5555c8ebd8b42a711f8b4637/html5/thumbnails/68.jpg)
canvas accessibility?
![Page 69: HTML5 and friends - standards>next Manchester 24.11.2010](https://reader033.fdocuments.in/reader033/viewer/2022060109/5555c8ebd8b42a711f8b4637/html5/thumbnails/69.jpg)
video, audio and canvason all devices without plugins
(Java / Flash / Silverlight not ubiquitous)
![Page 70: HTML5 and friends - standards>next Manchester 24.11.2010](https://reader033.fdocuments.in/reader033/viewer/2022060109/5555c8ebd8b42a711f8b4637/html5/thumbnails/70.jpg)
![Page 71: HTML5 and friends - standards>next Manchester 24.11.2010](https://reader033.fdocuments.in/reader033/viewer/2022060109/5555c8ebd8b42a711f8b4637/html5/thumbnails/71.jpg)
![Page 72: HTML5 and friends - standards>next Manchester 24.11.2010](https://reader033.fdocuments.in/reader033/viewer/2022060109/5555c8ebd8b42a711f8b4637/html5/thumbnails/72.jpg)
HTML5 (and friends) haslots more APIs for developers
(for powerful client-side apps)
![Page 74: HTML5 and friends - standards>next Manchester 24.11.2010](https://reader033.fdocuments.in/reader033/viewer/2022060109/5555c8ebd8b42a711f8b4637/html5/thumbnails/74.jpg)
geolocationnavigator.geolocation.getCurrentPosition(success, error);navigator.geolocation.watchCurrentPosition(success, error);
function success(position) {/* where's Wally? */var lat = position.coords.latitude;var long = position.coords.longitude;...
}
![Page 75: HTML5 and friends - standards>next Manchester 24.11.2010](https://reader033.fdocuments.in/reader033/viewer/2022060109/5555c8ebd8b42a711f8b4637/html5/thumbnails/75.jpg)
offline detection...
window.addEventListener('online', function(){ … }, true);window.addEventListener('offline', function(){ … }, true);
and application cache<html manifest=”blah.manifest”>
CACHE MANIFEST# send this with correct text/cache-manifest MIMEimages/sprites.pngscripts/common.jsscripts/jquery.jsstyles/global.cssdata.xml
and much more...
![Page 76: HTML5 and friends - standards>next Manchester 24.11.2010](https://reader033.fdocuments.in/reader033/viewer/2022060109/5555c8ebd8b42a711f8b4637/html5/thumbnails/76.jpg)
is it all safe to use, right now?
![Page 78: HTML5 and friends - standards>next Manchester 24.11.2010](https://reader033.fdocuments.in/reader033/viewer/2022060109/5555c8ebd8b42a711f8b4637/html5/thumbnails/78.jpg)
don't do browser sniffing
http://www.flickr.com/photos/timdorr/2096272747/
![Page 79: HTML5 and friends - standards>next Manchester 24.11.2010](https://reader033.fdocuments.in/reader033/viewer/2022060109/5555c8ebd8b42a711f8b4637/html5/thumbnails/79.jpg)
![Page 80: HTML5 and friends - standards>next Manchester 24.11.2010](https://reader033.fdocuments.in/reader033/viewer/2022060109/5555c8ebd8b42a711f8b4637/html5/thumbnails/80.jpg)
feature-detectionprogressive enhancement, graceful degradation
http://diveintohtml5.org/everything.html
![Page 81: HTML5 and friends - standards>next Manchester 24.11.2010](https://reader033.fdocuments.in/reader033/viewer/2022060109/5555c8ebd8b42a711f8b4637/html5/thumbnails/81.jpg)
feature-detection for audio/video
if (!!document.createElement('video').canPlayType;) { … }
if (!!document.createElement('audio').canPlayType;) { … }
![Page 82: HTML5 and friends - standards>next Manchester 24.11.2010](https://reader033.fdocuments.in/reader033/viewer/2022060109/5555c8ebd8b42a711f8b4637/html5/thumbnails/82.jpg)
patching older browsersgithub.com/Modernizr/Modernizr/wiki/HTML5-Cross-browser-Polyfills
![Page 86: HTML5 and friends - standards>next Manchester 24.11.2010](https://reader033.fdocuments.in/reader033/viewer/2022060109/5555c8ebd8b42a711f8b4637/html5/thumbnails/86.jpg)
HTML5 as Flashkiller?
![Page 87: HTML5 and friends - standards>next Manchester 24.11.2010](https://reader033.fdocuments.in/reader033/viewer/2022060109/5555c8ebd8b42a711f8b4637/html5/thumbnails/87.jpg)
not a question ofHTML5 replacing Flash...
![Page 88: HTML5 and friends - standards>next Manchester 24.11.2010](https://reader033.fdocuments.in/reader033/viewer/2022060109/5555c8ebd8b42a711f8b4637/html5/thumbnails/88.jpg)
giving developers a choice!
![Page 89: HTML5 and friends - standards>next Manchester 24.11.2010](https://reader033.fdocuments.in/reader033/viewer/2022060109/5555c8ebd8b42a711f8b4637/html5/thumbnails/89.jpg)
...should I use HTML5 today?
![Page 90: HTML5 and friends - standards>next Manchester 24.11.2010](https://reader033.fdocuments.in/reader033/viewer/2022060109/5555c8ebd8b42a711f8b4637/html5/thumbnails/90.jpg)
“The future is already here – it's just not very evenly distributed”
William Gibson
![Page 91: HTML5 and friends - standards>next Manchester 24.11.2010](https://reader033.fdocuments.in/reader033/viewer/2022060109/5555c8ebd8b42a711f8b4637/html5/thumbnails/91.jpg)
www.opera.com/developerpeople.opera.com/patrickl/presentations/standards-next_24.11.2010/standards-next_24.11.2010.pdf