SlideShare a Scribd company logo
HTML5 and friends
CONTEXTUALISING THE NEW TECHNOLOGIES




Patrick H. Lauke / Institutional Web Managers Workshop IWMW2010 / Sheffield / 13 July 2010
Web Evangelist at Opera
...should I use HTML5 today?
http://www.flickr.com/photos/24374884@N08/4603715307/
HTML5 and friends - Institutional Web Management Workshop 2010
HTML5 … without the hype?
history of HTML5
● 1999 HTML 4.01, 2000 XHTML 1.0
●
  2003 XForms specification > XML based
●
  Opera proof of concept: Web Forms 1.0
2004 W3C focus on XHTML 2.0 and beyond...

           http://www.flickr.com/photos/craiga/17071467/
WHATWG
Web Hypertext Application Technology Working Group
2007 W3C HTML5 WG
“...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 HTML5
http://lists.w3.org/Archives/Public/public-html/2009Jan/0215.html
HTML5 does not replace HTML 4.01
HTML5 has more bling!
HTML5 specification aimed
          at browser developers
(defines how browsers handle markup/code – no reverse engineering)


   for authors: HTML5 differences from HTML4
                  http://www.w3.org/TR/html5-diff/
HTML5 standardises current browser and
         authoring behaviour
            (e.g. “relaxed” coding rules)
HTML5
<!DOCTYPE html>
HTML5 brings new
markup elements and JavaScript APIs
new elements for more accurate semantics
HTML5 and friends - Institutional Web Management Workshop 2010
Top 20 class names
   1. 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
Top 20 id names
    1. 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
HTML5 and friends - Institutional Web Management Workshop 2010
unambiguous and machine readable
...but what about current screenreaders?
current and old browsers “support” these
(although some need a little extra help)

header, footer, … { display: block; }
Internet Explorer needs extra training wheels
document.createElement('header');
document.createElement('footer');
…

http://html5doctor.com/how-to-get-html5-working-in-ie-and-firefox-2
improved forms
making common UI needs native
rich form elements – without JavaScript
<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>
type and attributes for built-in validation
(of course you should still validate on the server)

<input             … required>
<input             type=”tel”>
<input             type=”email”>
<input             type=”url”>
<input             … pattern="[a-z]{3}[0-9]{3}">

Demos:
http://people.opera.com/patrickl/experiments/forms/newtypes.html
http://people.opera.com/patrickl/experiments/forms/date-time.html
http://people.opera.com/patrickl/experiments/forms/validation.html
<video>
Adobe Flash currently most common
    video delivery mechanism
<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&f
s=1&" type="application/x-shockwave-flash"
allowscriptaccess="always" allowfullscreen="true"
width="425" height="344"></embed>
</object>
<video src="video.webm"
  controls
  autoplay
  poster="poster.jpg"
  width="320" height="240">
    <a href="video.webm">Download movie</a>
</video>
video as native object
● “plays nice” with rest of the page
●
  keyboard accessibility built-in
●
  API for controls:
    v = document.getElementById('myVideo');
    v.play();
    v.pause();
    …

Demos:
http://people.opera.com/patrickl/experiments/webm/basic-controls/
http://people.opera.com/patrickl/experiments/webm/fancy-controls/
http://people.opera.com/patrickl/experiments/webm/fancy-swap/
video formats
   the big debate
MP4 / H.264




ubiquitous, patent encumbered, licensing/royalties
Ogg Theora




“free and open”, no licensing/royalties
not many tools for it, not web optimised
WebM




  open and royalty-free, web optimised
support by software and hardware vendors
providing multiple sources
<video controls autoplay poster="…" width="…" height="…">
   <source src="movie.webm" type="video/webm" />
   <source src="movie.ogv" type="video/ogg" />
   <source src="movie.mp4" type="video/mp4" />
   <!-- fallback content -->
</video>


     still include fallback for old browsers
            http://camendesign.com/code/video_for_everybody
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>

same format debacle: MP3 vs Ogg Vorbis
<canvas>
canvas = “scriptable images”

<canvas width="…" height="…"></canvas>
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(…);

Trivial demo:
http://www.splintered.co.uk/experiments/archives/paranoid_0.2/
HTML5 and friends - Institutional Web Management Workshop 2010
Demos:
http://alteredqualia.com/canvasmol/
http://dwpe.googlecode.com/svn/trunk/charting/index.html
canvas accessibility concerns
video, audio and canvas on any device
           without plugins
         (Java / Flash / Silverlight not ubiquitous)
HTML5 and friends - Institutional Web Management Workshop 2010
HTML5 and friends - Institutional Web Management Workshop 2010
HTML5 and friends - Institutional Web Management Workshop 2010
HTML5 (and friends) has
lots more APIs for developers
       (for powerful client-side apps)
isgeolocationpartofhtml5.com
geolocation
navigator.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;
   ...
}
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 MIME
images/sprites.png
scripts/common.js
scripts/jquery.js
styles/global.css
data.xml


                  and many more...
                       (even beyond HTML5)
is it all safe to use, right now?
don't do browser sniffing



      http://www.flickr.com/photos/timdorr/2096272747/
HTML5 and friends - Institutional Web Management Workshop 2010
feature-detection
progressive enhancement, graceful degradation – or use shims
                   http://diveintohtml5.org/everything.html
HTML5 as Flashkiller?
not a question of HTML5 replacing Flash...
giving developers a choice!
...should I use HTML5 today?
www.opera.com/developer
people.opera.com/patrickl/presentations/iwmw2010_13.07.2010/iwmw2010_13.07.2010.pdf
                        patrick.lauke@opera.com

More Related Content

PDF
HTML5 kickstart - Brooklyn Beta workshop 21.10.2010
PDF
Html5 oslo-code-camp
PDF
Schöne neue Welt von HTML5 - MultimediaTreff 28 - Köln 03.12.2011
PDF
Creating WordPress Theme Faster, Smarter & Without Swearing
PDF
HTML5 Who what where when why how
PDF
HTML5 and Accessibility sitting in a tree
PDF
lecture5
PDF
URL Design
HTML5 kickstart - Brooklyn Beta workshop 21.10.2010
Html5 oslo-code-camp
Schöne neue Welt von HTML5 - MultimediaTreff 28 - Köln 03.12.2011
Creating WordPress Theme Faster, Smarter & Without Swearing
HTML5 Who what where when why how
HTML5 and Accessibility sitting in a tree
lecture5
URL Design

What's hot (20)

PPT
PDF
funP 麻吉 開發者俱樂部十月份聚會
PDF
So you want to build a Facebook app
PDF
Web Apps and more
PPTX
Essential html tweaks for accessible themes
PPTX
WordPress Structure and Best Practices
PPTX
Custom Template for Joomla! 3
PDF
Progressive Enhancement
PPTX
Google I/O 2012 - Protecting your user experience while integrating 3rd party...
PDF
Building Beautiful and Interactive Metro apps with JavaScript, HTML5 & CSS3
PDF
Use Web Skills To Build Mobile Apps
PDF
Joomla Explained - As Easy as 1, 2, 3
PDF
Zotero Visualisierungen
PDF
AFUP Lorraine - Symfony Webpack Encore
PPT
Rapid application development with FOF
ODP
Web Browser Basics, Tips & Tricks Draft 17
 
PDF
Joomlatools Platform v1.0
PDF
Bootstrap 3 in Joomla!
PPTX
Introduction to building joomla! components using FOF
PDF
Netvibes UWA workshop at ParisWeb 2007
funP 麻吉 開發者俱樂部十月份聚會
So you want to build a Facebook app
Web Apps and more
Essential html tweaks for accessible themes
WordPress Structure and Best Practices
Custom Template for Joomla! 3
Progressive Enhancement
Google I/O 2012 - Protecting your user experience while integrating 3rd party...
Building Beautiful and Interactive Metro apps with JavaScript, HTML5 & CSS3
Use Web Skills To Build Mobile Apps
Joomla Explained - As Easy as 1, 2, 3
Zotero Visualisierungen
AFUP Lorraine - Symfony Webpack Encore
Rapid application development with FOF
Web Browser Basics, Tips & Tricks Draft 17
 
Joomlatools Platform v1.0
Bootstrap 3 in Joomla!
Introduction to building joomla! components using FOF
Netvibes UWA workshop at ParisWeb 2007
Ad

Similar to HTML5 and friends - Institutional Web Management Workshop 2010 (20)

PDF
Brave new world of HTML5 - Interlink Conference Vancouver 04.06.2011
PDF
Disruptive code
PDF
Brave new world of HTML5 - WebTech 2010 Milano 09.11.2010
PDF
HTML5 and friends - JISC CETIS Conference 2010 Nottingham 15.11.2010
PDF
HTML5 and friends - standards>next Manchester 24.11.2010
PDF
You too can be a bedwetting antfucker: Bruce Lawson, Opera, Fronteers 2011
PDF
Attractive HTML5~開発者の視点から~
KEY
Taking your Web App for a walk
PDF
HTML 5 - Overview
PDF
Echo HTML5
PDF
Toutch Jquery Mobile
PDF
Web app and more
PPTX
HTML5 and CSS3 Techniques You Can Use Today
PPTX
HTML5 on Mobile
PDF
Mobile themes, QR codes, and shortURLs
PPTX
Adobe & HTML5
PPTX
The Rich Standard: Getting Familiar with HTML5
PPT
Html5 drupal7 with mandakini kumari(1)
KEY
It's a Mod World - A Practical Guide to Rocking Modernizr
PDF
Html 5 in a big nutshell
Brave new world of HTML5 - Interlink Conference Vancouver 04.06.2011
Disruptive code
Brave new world of HTML5 - WebTech 2010 Milano 09.11.2010
HTML5 and friends - JISC CETIS Conference 2010 Nottingham 15.11.2010
HTML5 and friends - standards>next Manchester 24.11.2010
You too can be a bedwetting antfucker: Bruce Lawson, Opera, Fronteers 2011
Attractive HTML5~開発者の視点から~
Taking your Web App for a walk
HTML 5 - Overview
Echo HTML5
Toutch Jquery Mobile
Web app and more
HTML5 and CSS3 Techniques You Can Use Today
HTML5 on Mobile
Mobile themes, QR codes, and shortURLs
Adobe & HTML5
The Rich Standard: Getting Familiar with HTML5
Html5 drupal7 with mandakini kumari(1)
It's a Mod World - A Practical Guide to Rocking Modernizr
Html 5 in a big nutshell
Ad

More from Patrick Lauke (20)

PDF
These (still) aren't the SCs you're looking for ... (mis)adventures in WCAG 2...
PDF
Pointer Events Working Group update / TPAC 2023 / Patrick H. Lauke
PDF
These aren't the SCs you're looking for ... (mis)adventures in WCAG 2.x inter...
PDF
These aren't the SCs you're looking for ... (mis)adventures in WCAG 2.x inter...
PDF
Too much accessibility - good intentions, badly implemented / Public Sector F...
PDF
Styling Your Web Pages with Cascading Style Sheets / EDU course / University ...
PDF
Evaluating web sites for accessibility with Firefox / Manchester Digital Acce...
PDF
Managing and educating content editors - experiences and ideas from the trenc...
PDF
Implementing Web Standards across the institution: trials and tribulations of...
PDF
Geolinking content - experiments in connecting virtual and physical places / ...
PDF
All change for WCAG 2.0 - what you need to know about the new accessibility g...
PDF
Web Accessibility - an introduction / Salford Business School briefing / Univ...
PDF
Doing it in style - creating beautiful sites, the web standards way / WebDD /...
PDF
Web standards pragmatism - from validation to the real world / Web Developers...
PDF
Ian Lloyd/Patrick H. Lauke: Accessified - practical accessibility fixes any w...
PDF
The state of the web - www.salford.ac.uk / 2007
PDF
Keyboard accessibility - just because I don't use a mouse doesn't mean I'm se...
PDF
WAI-ARIA An introduction to Accessible Rich Internet Applications / JavaScrip...
PDF
WAI-ARIA An introduction to Accessible Rich Internet Applications / CSS Minsk...
PDF
WAI-ARIA An introduction to Accessible Rich Internet Applications / AccessU 2018
These (still) aren't the SCs you're looking for ... (mis)adventures in WCAG 2...
Pointer Events Working Group update / TPAC 2023 / Patrick H. Lauke
These aren't the SCs you're looking for ... (mis)adventures in WCAG 2.x inter...
These aren't the SCs you're looking for ... (mis)adventures in WCAG 2.x inter...
Too much accessibility - good intentions, badly implemented / Public Sector F...
Styling Your Web Pages with Cascading Style Sheets / EDU course / University ...
Evaluating web sites for accessibility with Firefox / Manchester Digital Acce...
Managing and educating content editors - experiences and ideas from the trenc...
Implementing Web Standards across the institution: trials and tribulations of...
Geolinking content - experiments in connecting virtual and physical places / ...
All change for WCAG 2.0 - what you need to know about the new accessibility g...
Web Accessibility - an introduction / Salford Business School briefing / Univ...
Doing it in style - creating beautiful sites, the web standards way / WebDD /...
Web standards pragmatism - from validation to the real world / Web Developers...
Ian Lloyd/Patrick H. Lauke: Accessified - practical accessibility fixes any w...
The state of the web - www.salford.ac.uk / 2007
Keyboard accessibility - just because I don't use a mouse doesn't mean I'm se...
WAI-ARIA An introduction to Accessible Rich Internet Applications / JavaScrip...
WAI-ARIA An introduction to Accessible Rich Internet Applications / CSS Minsk...
WAI-ARIA An introduction to Accessible Rich Internet Applications / AccessU 2018

Recently uploaded (20)

PDF
O5-L3 Freight Transport Ops (International) V1.pdf
PPTX
master seminar digital applications in india
PPTX
Cell Structure & Organelles in detailed.
PDF
Chapter 2 Heredity, Prenatal Development, and Birth.pdf
PPTX
Pharmacology of Heart Failure /Pharmacotherapy of CHF
PDF
Computing-Curriculum for Schools in Ghana
PDF
VCE English Exam - Section C Student Revision Booklet
PDF
The Lost Whites of Pakistan by Jahanzaib Mughal.pdf
PDF
Pre independence Education in Inndia.pdf
PPTX
Renaissance Architecture: A Journey from Faith to Humanism
PPTX
human mycosis Human fungal infections are called human mycosis..pptx
PDF
ANTIBIOTICS.pptx.pdf………………… xxxxxxxxxxxxx
PDF
3rd Neelam Sanjeevareddy Memorial Lecture.pdf
PDF
FourierSeries-QuestionsWithAnswers(Part-A).pdf
PDF
Basic Mud Logging Guide for educational purpose
PDF
Module 4: Burden of Disease Tutorial Slides S2 2025
PPTX
school management -TNTEU- B.Ed., Semester II Unit 1.pptx
PDF
Anesthesia in Laparoscopic Surgery in India
PDF
O7-L3 Supply Chain Operations - ICLT Program
PDF
Sports Quiz easy sports quiz sports quiz
O5-L3 Freight Transport Ops (International) V1.pdf
master seminar digital applications in india
Cell Structure & Organelles in detailed.
Chapter 2 Heredity, Prenatal Development, and Birth.pdf
Pharmacology of Heart Failure /Pharmacotherapy of CHF
Computing-Curriculum for Schools in Ghana
VCE English Exam - Section C Student Revision Booklet
The Lost Whites of Pakistan by Jahanzaib Mughal.pdf
Pre independence Education in Inndia.pdf
Renaissance Architecture: A Journey from Faith to Humanism
human mycosis Human fungal infections are called human mycosis..pptx
ANTIBIOTICS.pptx.pdf………………… xxxxxxxxxxxxx
3rd Neelam Sanjeevareddy Memorial Lecture.pdf
FourierSeries-QuestionsWithAnswers(Part-A).pdf
Basic Mud Logging Guide for educational purpose
Module 4: Burden of Disease Tutorial Slides S2 2025
school management -TNTEU- B.Ed., Semester II Unit 1.pptx
Anesthesia in Laparoscopic Surgery in India
O7-L3 Supply Chain Operations - ICLT Program
Sports Quiz easy sports quiz sports quiz

HTML5 and friends - Institutional Web Management Workshop 2010