SlideShare a Scribd company logo
HTML5: A richer web
   for everyone
   Chris Mills, Opera Software




            Slides available on http://slideshare.net/chrisdavidmills
Who am I?

‣ Opera open standards evangelist and tech writer
‣ Telling the world about open standards & Opera
‣ Improving web education
‣ Drumming in a heavy metal band
(For non-developers) HTML5: A richer web for everyone
What is HTML5?
A new version of HTML that defines:
‣ More consistent features
‣ New features that compete with Flash
‣ Easier and quicker ways to implement things that
  were previously complicated
‣ Error handling, and other such useful things
It’s not all rosy
‣ Tooling more limited than say, Flash or HTML4
‣ Cross browser support not quite as easy as
  Flash
‣ HTML5 not much good if you have JavaScript
  disabled
But things are getting better
‣ All modern browsers support most of this stuff
  now
‣ Workarounds are perfectly possible
‣ Tools are getting better (from
  HTML5boilerplate.com to Dreamweaver)
HTML5 does not replace
HTML4
  You are already using HTML5 by using HTML4.x
‣ It’s backwards compatible
‣ It fills up holes
‣ It competes with proprietary/plugin technology
HTML5 isn’t...
‣ CSS3, WOFF
‣ SVG, SMIL, WebGL
‣ Geolocation, WAC
‣ Indexed DB, File API
‣ Server-sent events
‣ Web workers, XHR2
Let’s look at the new
features




              http://www.flickr.com/photos/zscheyge/49012397/
Typical website structure
<div
id=”header”></div>
<div
id=”nav”></div>
<div
id=”main”>


<div
class=”article”></div>


<div
class=”article”></div>




...
</div>
<div
id=”footer”></div>
HTML5 update
<header></header>
<nav></nav>
<section
id=”main”>


<article></article>


<article></article>




...
</section>
<footer></footer>
<figure> and <figcaption>
<figure>


<img
src=”bear.jpg”







alt=”this
is
the
bear
that
I
wrestled”
/>


<figcaption>This
is
the
bear
that
I


wrestled.</figcaption>
</figure>
HTML5 forms
Previously called Web Forms 2.0
‣ More powerful form controls
‣ Built-in validation
Slider
<input
type=”range”
/>
Date-time controls
<input
type=”date”>
<input
type=”datetime”>
<input
type=”week”>
<input
type=”month”>
color
<input
type=”color”>
Other new input types
<input
type=”email”>
<input
type=”url”>
<input
type=”tel”>
Validation
Form validation used to be horrendous

Who wants to spend the time coding something
like...
function
validate()
{




var
str
=
“”;




var
elements
=
document.getElementsByTagName('input');







//
loop
through
all
input
elements
in
form






                                                                            ...this??

for(var
i
=
0;
i
<
elements.length;
i++)
{









//
check
if
element
is
mandatory;
ie
has
a
pattern







var
pattern
=
elements.item(i).getAttribute('pattern');






if
(pattern
!=
null)
{








var
value
=
elements.item(i).value;











//
validate
the
value
of
this
element,
using
its
defined
pattern








var
offendingChar
=
value.match(pattern);











//
if
an
invalid
character
is
found
or
the
element
was
left
empty








if(offendingChar
!=
null
||
value.length
==
0)
{













//
add
up
all
error
messages










str
+=
elements.item(i).getAttribute('errorMsg')
+
“n”
+

















“Found
this
illegal
value:
'”
+
offendingChar
+
“'
n”;













//
notify
user
by
changing
background
color,
in
this
case
to
red










elements.item(i).style.background
=
“red”;









}






}




}








if
(str
!=
“”)
{






//
do
not
submit
the
form






alert(”ERROR
ALERT!!n”
+str);







return
false;




}
else
{






//
form
values
are
valid;
submit


HTML5 gives you this
<input
type=”text”
required>
And this
<input
type=”text”
required








pattern=”[A‐z]{1,20}
[A‐z]{1,20}”>
<canvas>
Scriptable graphics
‣ Standard API for drawing
‣ Supporting across all modern browsers
<canvas> examples
‣ http://dev.opera.com/articles/view/html-5-
  canvas-the-basics/
‣ http://ejohn.org/blog/processingjs/
‣ http://www.hakim.se/experiments/
‣ http://www.canvasdemos.com/
‣ http://people.opera.com/patrickl/experiments/
  canvas/particle/3/
<video> and <audio>
New elements, plus new API for controlling audio
and video
Fallback
<video
width=”480px”







height=”283px”







controls







poster=”poster.png”>


<source
src=”video.mp4”
type=”video/mp4”>


<source
src=”video.webm”
type=”video/webm”>


<p>Your
browser
doesn’t
support
HTML5
video.
<a

href=”myVideo.webm”>Download
the
video
instead</
a>.</p>
</video>
And why is this all so good
again?




              http://www.flickr.com/photos/zscheyge/49012397/
Better consistency
‣ Better machine readability & interoperability:
 ‣ Easier syndication and reuse
 ‣ Less time worrying about design consistency
 ‣ Less time training up new team members
‣ Defined error handling means things work more
 consistently, even if they are broken!
 ‣ Better cross browser apps
 ‣ Less time spent debugging
Better accessibility
‣ For example, HTML5 video is keyboard
  accessible out of the box
‣ New elements bringing consistency is also
  important here
‣ Less time and money spent on accessibility
‣ 1 in 5 people in the UK have some kind of
  disability - a market you can’t ignore
Less reliance on JavaScript
‣ Less work for your developers to do, so faster
  implementation and prototyping
‣ Less pain for designers and other less technical
  team members
‣ Faster loading sites
Less reliance on Flash
‣ Means less skills needed in the team
‣ HTML5 plays nicer with the rest of the page
‣ Less Flash means better accessibility (note: there
  are some HTML5 accessibility gotchas, like
  Canvas)
‣ Downloading a plugin breaks brand experience
  and can confuse users
HTML5 works on iDevices
‣ Like iPad and iPhone
‣ A crucial market to be in
‣ Flash has not been allowed on these devices
Thanks for listening!
‣ cmills@opera.com
‣ @chrisdavidmills
‣ http://dev.opera.com/articles/tags/html5/
‣ http://html5doctor.com

More Related Content

What's hot (20)

PPTX
jQuery From the Ground Up
Kevin Griffin
 
PDF
Leveling up your JavaScipt - DrupalJam 2017
Christian Heilmann
 
PDF
Beginner's Guide to Frontend Development: Comparing Angular, React, Ember, an...
Prasid Pathak
 
PDF
Real World HTML5 + ASP.NET MVC - Lessons Learned
Zoltán Dávid
 
KEY
Lessons learned with HTML5
Neil Turner
 
PPTX
ASP.NET MVC From The Ground Up
Kevin Griffin
 
PDF
Intro to Web Development from Bloc.io
Douglas Wright
 
PDF
Deck 893ff61f-1fb8-4e15-a379-775dfdbcee77-12-173-252-450
Justin Ezor
 
PDF
JavaScript is a buffet - Scriptconf 2017 keynote
Christian Heilmann
 
PDF
3 Gifts My Users Gave Me - Alexandra Draghici - WordCamp Europe 2017
Alexandra_CaptainForm
 
PDF
Polymer - Una bella historia de amor
Israel Blancas
 
PDF
Wrangling Large Scale Frontend Web Applications
Ryan Roemer
 
PDF
The Frontend Developer Landscape Explained and the Rise of Advanced Frontend ...
Prasid Pathak
 
PPTX
Real World Windows 8 Apps in JavaScript
Domenic Denicola
 
PDF
Lightning Talk: jsPDF
Jenny Liang
 
PDF
My product store review Chris Hitman sell digital products
Jvzooreview DotNet
 
PPTX
Future Of The Web, Now
Derek Hammer
 
PDF
Frameworks for Web Development
dtmodern
 
PPT
Unobtrusive javascript
Lee Jordan
 
PDF
Progressive Web Apps. What, why and how
Riza Fahmi
 
jQuery From the Ground Up
Kevin Griffin
 
Leveling up your JavaScipt - DrupalJam 2017
Christian Heilmann
 
Beginner's Guide to Frontend Development: Comparing Angular, React, Ember, an...
Prasid Pathak
 
Real World HTML5 + ASP.NET MVC - Lessons Learned
Zoltán Dávid
 
Lessons learned with HTML5
Neil Turner
 
ASP.NET MVC From The Ground Up
Kevin Griffin
 
Intro to Web Development from Bloc.io
Douglas Wright
 
Deck 893ff61f-1fb8-4e15-a379-775dfdbcee77-12-173-252-450
Justin Ezor
 
JavaScript is a buffet - Scriptconf 2017 keynote
Christian Heilmann
 
3 Gifts My Users Gave Me - Alexandra Draghici - WordCamp Europe 2017
Alexandra_CaptainForm
 
Polymer - Una bella historia de amor
Israel Blancas
 
Wrangling Large Scale Frontend Web Applications
Ryan Roemer
 
The Frontend Developer Landscape Explained and the Rise of Advanced Frontend ...
Prasid Pathak
 
Real World Windows 8 Apps in JavaScript
Domenic Denicola
 
Lightning Talk: jsPDF
Jenny Liang
 
My product store review Chris Hitman sell digital products
Jvzooreview DotNet
 
Future Of The Web, Now
Derek Hammer
 
Frameworks for Web Development
dtmodern
 
Unobtrusive javascript
Lee Jordan
 
Progressive Web Apps. What, why and how
Riza Fahmi
 

Viewers also liked (8)

KEY
CSS3: stay tuned for style
Chris Mills
 
KEY
HTML5: what's new?
Chris Mills
 
PDF
HTML5 and CSS3 Shizzle
Chris Mills
 
KEY
CSS3: the new style council
Chris Mills
 
PDF
HTML5 Pearson preso
Chris Mills
 
PDF
A web sized education problem?
Chris Mills
 
KEY
Selling Yourself Online Chrismills
Chris Mills
 
PPT
[Slideshare] tafaqqahu-#5(august-2016)-lesson-#3f-problem-in–education- contn...
Zhulkeflee Ismail
 
CSS3: stay tuned for style
Chris Mills
 
HTML5: what's new?
Chris Mills
 
HTML5 and CSS3 Shizzle
Chris Mills
 
CSS3: the new style council
Chris Mills
 
HTML5 Pearson preso
Chris Mills
 
A web sized education problem?
Chris Mills
 
Selling Yourself Online Chrismills
Chris Mills
 
[Slideshare] tafaqqahu-#5(august-2016)-lesson-#3f-problem-in–education- contn...
Zhulkeflee Ismail
 
Ad

Similar to (For non-developers) HTML5: A richer web for everyone (20)

PPTX
HTML5 introduction for beginners
Vineeth N Krishnan
 
KEY
HTML5: A brave new world of markup
Chris Mills
 
PPTX
Peter lubbers-html5-overview-sf-dev-conf-2011
Peter Lubbers
 
PPTX
Top 10 major benefits of html 5
Parul Rani Sagar
 
PPTX
HTML5- The Boosting Era of Web Development
MobilePundits
 
PPTX
HTML5 - One spec to rule them all
Stu King
 
PDF
Real solutions, no tricks
Jens Grochtdreis
 
PDF
Html5 workshop part 1
NAILBITER
 
PPTX
HTML5 - Let’s make the WEB more powerful
Naga Harish M
 
PDF
11 tips for HTML5
Bart De Waele
 
KEY
Introduction to HTML5/CSS3 In Drupal 7
Mediacurrent
 
ZIP
HTML5 Report Card
Michael(tm) Smith
 
ODP
Bruce Lawson HTML5 South By SouthWest presentation
brucelawson
 
PDF
Echo HTML5
Nathan Smith
 
PDF
HTML5 Technical Executive Summary
Gilad Khen
 
PDF
HTML5 Development Benefits, Features and Cost For 2024.pdf
JPLoft Solutions
 
DOC
HTML5 vs Flash : Term paper at VGSOM, IIT Kharagpur
Kanishka Chakraborty
 
PDF
IRJET- HTML5 in Web Development: A New Approach
IRJET Journal
 
PDF
Html5
Ben MacNeill
 
PDF
11 tips to...
Thomas Deceuninck
 
HTML5 introduction for beginners
Vineeth N Krishnan
 
HTML5: A brave new world of markup
Chris Mills
 
Peter lubbers-html5-overview-sf-dev-conf-2011
Peter Lubbers
 
Top 10 major benefits of html 5
Parul Rani Sagar
 
HTML5- The Boosting Era of Web Development
MobilePundits
 
HTML5 - One spec to rule them all
Stu King
 
Real solutions, no tricks
Jens Grochtdreis
 
Html5 workshop part 1
NAILBITER
 
HTML5 - Let’s make the WEB more powerful
Naga Harish M
 
11 tips for HTML5
Bart De Waele
 
Introduction to HTML5/CSS3 In Drupal 7
Mediacurrent
 
HTML5 Report Card
Michael(tm) Smith
 
Bruce Lawson HTML5 South By SouthWest presentation
brucelawson
 
Echo HTML5
Nathan Smith
 
HTML5 Technical Executive Summary
Gilad Khen
 
HTML5 Development Benefits, Features and Cost For 2024.pdf
JPLoft Solutions
 
HTML5 vs Flash : Term paper at VGSOM, IIT Kharagpur
Kanishka Chakraborty
 
IRJET- HTML5 in Web Development: A New Approach
IRJET Journal
 
11 tips to...
Thomas Deceuninck
 
Ad

More from Chris Mills (20)

PDF
More efficient, usable web
Chris Mills
 
PDF
Feedback handling, community wrangling, panhandlin’
Chris Mills
 
PDF
APIs for modern web apps
Chris Mills
 
PDF
APIs, now and in the future
Chris Mills
 
PDF
Guerrilla education
Chris Mills
 
PDF
Web versus Native: round 1!
Chris Mills
 
PDF
BrazilJS MDN
Chris Mills
 
PDF
Empowering the "mobile web"
Chris Mills
 
PDF
Documentation and publishing
Chris Mills
 
PDF
MDN is easy!
Chris Mills
 
PDF
Getting rid of images with CSS
Chris Mills
 
PDF
Future layouts
Chris Mills
 
PDF
Laying out the future
Chris Mills
 
PDF
Accessibility doesn't exist
Chris Mills
 
PDF
Responsive web design standards?
Chris Mills
 
PDF
Adapt! Media queries and viewport
Chris Mills
 
PDF
Adapt and respond: keeping responsive into the future
Chris Mills
 
KEY
Angels versus demons: balancing shiny and inclusive
Chris Mills
 
PDF
HTML5 and CSS3: does now really mean now?
Chris Mills
 
PDF
The W3C and the web design ecosystem
Chris Mills
 
More efficient, usable web
Chris Mills
 
Feedback handling, community wrangling, panhandlin’
Chris Mills
 
APIs for modern web apps
Chris Mills
 
APIs, now and in the future
Chris Mills
 
Guerrilla education
Chris Mills
 
Web versus Native: round 1!
Chris Mills
 
BrazilJS MDN
Chris Mills
 
Empowering the "mobile web"
Chris Mills
 
Documentation and publishing
Chris Mills
 
MDN is easy!
Chris Mills
 
Getting rid of images with CSS
Chris Mills
 
Future layouts
Chris Mills
 
Laying out the future
Chris Mills
 
Accessibility doesn't exist
Chris Mills
 
Responsive web design standards?
Chris Mills
 
Adapt! Media queries and viewport
Chris Mills
 
Adapt and respond: keeping responsive into the future
Chris Mills
 
Angels versus demons: balancing shiny and inclusive
Chris Mills
 
HTML5 and CSS3: does now really mean now?
Chris Mills
 
The W3C and the web design ecosystem
Chris Mills
 

Recently uploaded (20)

PDF
ICONIQ State of AI Report 2025 - The Builder's Playbook
Razin Mustafiz
 
PDF
NASA A Researcher’s Guide to International Space Station : Earth Observations
Dr. PANKAJ DHUSSA
 
PDF
Home Cleaning App Development Services.pdf
V3cube
 
PDF
“NPU IP Hardware Shaped Through Software and Use-case Analysis,” a Presentati...
Edge AI and Vision Alliance
 
PDF
Transforming Utility Networks: Large-scale Data Migrations with FME
Safe Software
 
PDF
NASA A Researcher’s Guide to International Space Station : Fundamental Physics
Dr. PANKAJ DHUSSA
 
PDF
“Squinting Vision Pipelines: Detecting and Correcting Errors in Vision Models...
Edge AI and Vision Alliance
 
PDF
UPDF - AI PDF Editor & Converter Key Features
DealFuel
 
PDF
Automating Feature Enrichment and Station Creation in Natural Gas Utility Net...
Safe Software
 
PDF
NLJUG Speaker academy 2025 - first session
Bert Jan Schrijver
 
PDF
“Computer Vision at Sea: Automated Fish Tracking for Sustainable Fishing,” a ...
Edge AI and Vision Alliance
 
PDF
🚀 Let’s Build Our First Slack Workflow! 🔧.pdf
SanjeetMishra29
 
PPTX
CapCut Pro PC Crack Latest Version Free Free
josanj305
 
PPTX
Mastering ODC + Okta Configuration - Chennai OSUG
HathiMaryA
 
PDF
Kit-Works Team Study_20250627_한달만에만든사내서비스키링(양다윗).pdf
Wonjun Hwang
 
PDF
Modern Decentralized Application Architectures.pdf
Kalema Edgar
 
PPTX
Securing Model Context Protocol with Keycloak: AuthN/AuthZ for MCP Servers
Hitachi, Ltd. OSS Solution Center.
 
PDF
“Voice Interfaces on a Budget: Building Real-time Speech Recognition on Low-c...
Edge AI and Vision Alliance
 
PDF
Peak of Data & AI Encore AI-Enhanced Workflows for the Real World
Safe Software
 
PPTX
MuleSoft MCP Support (Model Context Protocol) and Use Case Demo
shyamraj55
 
ICONIQ State of AI Report 2025 - The Builder's Playbook
Razin Mustafiz
 
NASA A Researcher’s Guide to International Space Station : Earth Observations
Dr. PANKAJ DHUSSA
 
Home Cleaning App Development Services.pdf
V3cube
 
“NPU IP Hardware Shaped Through Software and Use-case Analysis,” a Presentati...
Edge AI and Vision Alliance
 
Transforming Utility Networks: Large-scale Data Migrations with FME
Safe Software
 
NASA A Researcher’s Guide to International Space Station : Fundamental Physics
Dr. PANKAJ DHUSSA
 
“Squinting Vision Pipelines: Detecting and Correcting Errors in Vision Models...
Edge AI and Vision Alliance
 
UPDF - AI PDF Editor & Converter Key Features
DealFuel
 
Automating Feature Enrichment and Station Creation in Natural Gas Utility Net...
Safe Software
 
NLJUG Speaker academy 2025 - first session
Bert Jan Schrijver
 
“Computer Vision at Sea: Automated Fish Tracking for Sustainable Fishing,” a ...
Edge AI and Vision Alliance
 
🚀 Let’s Build Our First Slack Workflow! 🔧.pdf
SanjeetMishra29
 
CapCut Pro PC Crack Latest Version Free Free
josanj305
 
Mastering ODC + Okta Configuration - Chennai OSUG
HathiMaryA
 
Kit-Works Team Study_20250627_한달만에만든사내서비스키링(양다윗).pdf
Wonjun Hwang
 
Modern Decentralized Application Architectures.pdf
Kalema Edgar
 
Securing Model Context Protocol with Keycloak: AuthN/AuthZ for MCP Servers
Hitachi, Ltd. OSS Solution Center.
 
“Voice Interfaces on a Budget: Building Real-time Speech Recognition on Low-c...
Edge AI and Vision Alliance
 
Peak of Data & AI Encore AI-Enhanced Workflows for the Real World
Safe Software
 
MuleSoft MCP Support (Model Context Protocol) and Use Case Demo
shyamraj55
 

(For non-developers) HTML5: A richer web for everyone

Editor's Notes