SlideShare a Scribd company logo
HTML5
         -
The 2012 of the Web
HTML5 - The 2012 of the Web
Mozilla is a global non-profit
dedicated to putting you in control
of your online experience and
shaping the future of the Web for
the public good
HTML5 - The 2012 of the Web
2012
Mesoamerican Long
  Count calendar
"The beginning of a new era"
HTML4 * 1000

HTML 4000
HTML5 - The 2012 of the Web
What is HTML5?
Semantics   APIs
HTML5 semantics
<!DOCTYPE html>
HTML5 - The 2012 of the Web
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta charset="utf-8">
HTML5 Doctor
HTML5 Forms
New form types


<input type="color">             <input type="range">

<input type="date">              <input type="search"
                                    results="5"
<input type="datetime">             autosave="saved-searches">

<input type="datetime-local">    <input type="tel">

<input type="email">             <input type="time">

<input type="month">             <input type="url">

<input type="number">            <input type="week">
HTML5 - The 2012 of the Web
New form attributes

<input type="text" autocomplete="off">

<input type="text" autofocus>

<input type="submit" formaction="http://example.org/save" value="Save">

<input type="submit" formenctype="application/x-www-form-urlencoded"
       value="Save with enctype">

<input type="submit" formmethod="POST" value="Send as POST">

<input type="submit" formnovalidate value="Don't validate">

<input type="submit" formtarget="_blank" value="Post to new tab/window">
<input type="text" list="data-list">

<input type="range" max="95">

<input type="range" min="2">

<input type="file" multiple>

<input type="text" readonly>

<input type="text" required>

<input type="text" pattern="[A-Z]*">

<input type="text" placeholder="E.g. Robocop">

<input type="text" spellcheck="true">

<input type="number" step="5">
New form elements



<input type="text" list="data-list">

<datalist id="data-list">
    <option value="Hugo Reyes">
    <option value="Jack Shephard">
    <option value="James 'Sawyer' Ford">
    <option value="John Locke">
    <option value="Sayid Jarrah">
</datalist>
<keygen></keygen>

<meter min="0" max="10" value="7"></meter>

<input type="range" id="range">
<output for="range" id="output"></output>

<progress max="100" value="70">70%</progress>
<input type="range" id="range">
<output for="range" id="output"></output>

<script>
    (function () {
         var theForm = document.getElementById("the-form");
         if ("oninput" in theForm) {
             theForm.addEventListener("input", function () {
                 output.value = range.value;
             }, false);
         }
    })();
</script>
HTML5 - The 2012 of the Web
http://www.quirksmode.org/html5/inputs.html

http://www.quirksmode.org/html5/inputs_mobile.html

http://wufoo.com/html5/
Web Storage
HTML5 - The 2012 of the Web
sessionStorage.setItem("Charming", "Anthony Weiner");
console.log(sessionStorage.getItem("Charming"));
localStorage.setItem("Occupation", "Politician");
var anthonyWeiner = {
    "Interest" : "Photography",
    "Social" : "Twitter"
};

localStorage.setItem("anthonyWeiner", JSON.stringify(anthonyWeiner));

console.log(typeof JSON.parse(localStorage.getItem("anthonyWeiner")));
Web SQL   IndexedDB
History API
window.history.pushState(state, title, url);
var url = "http://robertnyman.com",
title = "My blog",
state = {
    address : url
};

window.history.pushState(state, title, url);
HTML5 - The 2012 of the Web
Web Sockets
LiveConnect
    Forever Frame



       HTTP Long-Polling and XHR Streaming




      What came before WebSockets?

      AJAX
                                             HTTP Polling



Cross Frame Communication
var ws = new WebSocket("ws://robertnyman.com/wsmagic");

// Send data
ws.send("Some data");

// Close the connection
ws.close();
var ws = new WebSocket("ws://robertnyman.com/wsmagic");

// When connection is opened
ws.onopen = function () {
    console.log("Connection opened!");
};

// When you receive a message
ws.onmessage = function (evt) {
    console.log(evt.data);
};

// When you close the connection
ws.onclose = function () {
    console.log("Connection closed");
};

// When an error occurred
ws.onerror = function () {
    console.log("An error occurred");
};
web-socket-js
 Socket.IO
HTML5 - The 2012 of the Web
Video
<video controls src="nasa.webm"></video>
<video controls>
    <source src="nasa.mp4"></source>
    <source src="nasa.webm"></source>
    <p>Hello, older web browser</p>
</video>
HTML5 - The 2012 of the Web
<video src="http://vid.ly/4w2g7d?content=video"
controls></video>
HTML5 - The 2012 of the Web
HTML5 - The 2012 of the Web
HTML5 - The 2012 of the Web
HTML5 - The 2012 of the Web
HTML5 - The 2012 of the Web
Canvas
<canvas id="my-canvas" width="500" height="500">
    I am canvas
</canvas>
var canvas = document.getElementById("my-canvas"),
    context = canvas.getContext("2d");

context.fillStyle = "#f00";
context.fillRect(0, 0, 100, 100);

context.clearRect(40, 40, 20, 20);
HTML5 - The 2012 of the Web
HTML5 - The 2012 of the Web
HTML5 - The 2012 of the Web
WebGL
http://code.google.com/p/webglsamples/
HTML5 - The 2012 of the Web
HTML5 - The 2012 of the Web
Questions
Will HTML5 be
Is it ready?
                  around?


 Why did I hug that bear?
Why did I hug that bear?
Is it ready?
Is it ready?
Is it ready?




http://canisue.com
Will HTML5 be around?
Will HTML5 be around?
Will HTML5 be around?
HTML5 - The 2012 of the Web
HTML5 - The 2012 of the Web
HTML5
             -
The beauty of the Open Web
HTML5 - The 2012 of the Web
Robert Nyman
robertnyman.com/speaking/ robnyman@mozilla.com
robertnyman.com/html5/    Twitter: @robertnyman
robertnyman.com/css3/

More Related Content

What's hot (20)

PDF
Infinum Android Talks #16 - App Links by Ana Baotic
Infinum
 
KEY
Eu odeio OpenSocial
Carlos Brando
 
PDF
1 ppt-ajax with-j_query
Fajar Baskoro
 
PDF
Infinum Android Talks #16 - How to shoot your self in the foot by Dino Kovac
Infinum
 
DOC
QuickConnect
Annu G
 
PDF
Mozilla Web Apps - Super-VanJS
Robert Nyman
 
PDF
Html server control - ASP. NET with c#
priya Nithya
 
PPTX
Make an html validator extension
Rebecca Peltz
 
PDF
Mocks, Proxies, and Transpilation as Development Strategies for Web Development
ESUG
 
PDF
Intro to jquery
Dan Pickett
 
PDF
HTML5 Forms - KISS time - Fronteers
Robert Nyman
 
PDF
Django の認証処理実装パターン / Django Authentication Patterns
Masashi Shibata
 
PDF
Introduction to jQuery
Nivedhitha Venugopal
 
PPTX
Getting classy with ES6
Andy Sharman
 
PDF
Djangoアプリのデプロイに関するプラクティス / Deploy django application
Masashi Shibata
 
PDF
Short intro to JQuery and Modernizr
Jussi Pohjolainen
 
PPTX
JQuery
Jussi Pohjolainen
 
PDF
Rails GUI Development with Ext JS
Martin Rehfeld
 
PDF
Jquery for post a form
Rakesh Kumar
 
PPTX
MVVM e Caliburn Micro for Windows Phone applications
Matteo Pagani
 
Infinum Android Talks #16 - App Links by Ana Baotic
Infinum
 
Eu odeio OpenSocial
Carlos Brando
 
1 ppt-ajax with-j_query
Fajar Baskoro
 
Infinum Android Talks #16 - How to shoot your self in the foot by Dino Kovac
Infinum
 
QuickConnect
Annu G
 
Mozilla Web Apps - Super-VanJS
Robert Nyman
 
Html server control - ASP. NET with c#
priya Nithya
 
Make an html validator extension
Rebecca Peltz
 
Mocks, Proxies, and Transpilation as Development Strategies for Web Development
ESUG
 
Intro to jquery
Dan Pickett
 
HTML5 Forms - KISS time - Fronteers
Robert Nyman
 
Django の認証処理実装パターン / Django Authentication Patterns
Masashi Shibata
 
Introduction to jQuery
Nivedhitha Venugopal
 
Getting classy with ES6
Andy Sharman
 
Djangoアプリのデプロイに関するプラクティス / Deploy django application
Masashi Shibata
 
Short intro to JQuery and Modernizr
Jussi Pohjolainen
 
Rails GUI Development with Ext JS
Martin Rehfeld
 
Jquery for post a form
Rakesh Kumar
 
MVVM e Caliburn Micro for Windows Phone applications
Matteo Pagani
 

Similar to HTML5 - The 2012 of the Web (20)

PDF
HTML5 (and friends) - History, overview and current status - jsDay Verona 11....
Patrick Lauke
 
PPTX
Rohit&kunjan
Rohit Patel
 
PDF
Web Directions @media 2010
Patrick Lauke
 
PDF
HTML5 Refresher
Ivano Malavolta
 
PDF
Brave new world of HTML5
Chris Mills
 
PDF
webinale2011_Chris Mills_Brave new world of HTML5Html5
smueller_sandsmedia
 
PDF
Speak the Web 15.02.2010
Patrick Lauke
 
PDF
HTML 5 - Overview
Marcelio Leal
 
PDF
What you need to know bout html5
Kevin DeRudder
 
PDF
Html5ppt
recroup
 
PPTX
Html5 and web technology update
Doug Domeny
 
PPTX
HTML 5
pavrabhargav
 
KEY
An Introduction to HTML5
Steven Chipman
 
PDF
HTML5 New and Improved
Timothy Fisher
 
KEY
Html 5 boot camp
Laurie Young
 
PPTX
Html 5
Nguyen Quang
 
PPTX
Html5
Alaa Abdelhamid
 
PDF
Html5 Application Security
chuckbt
 
PPTX
Html5
Zahin Omar Alwa
 
PPTX
HTML 5
Rajan Pal
 
HTML5 (and friends) - History, overview and current status - jsDay Verona 11....
Patrick Lauke
 
Rohit&kunjan
Rohit Patel
 
Web Directions @media 2010
Patrick Lauke
 
HTML5 Refresher
Ivano Malavolta
 
Brave new world of HTML5
Chris Mills
 
webinale2011_Chris Mills_Brave new world of HTML5Html5
smueller_sandsmedia
 
Speak the Web 15.02.2010
Patrick Lauke
 
HTML 5 - Overview
Marcelio Leal
 
What you need to know bout html5
Kevin DeRudder
 
Html5ppt
recroup
 
Html5 and web technology update
Doug Domeny
 
HTML 5
pavrabhargav
 
An Introduction to HTML5
Steven Chipman
 
HTML5 New and Improved
Timothy Fisher
 
Html 5 boot camp
Laurie Young
 
Html 5
Nguyen Quang
 
Html5 Application Security
chuckbt
 
HTML 5
Rajan Pal
 
Ad

More from Robert Nyman (20)

PDF
Have you tried listening?
Robert Nyman
 
PDF
Building for Your Next Billion - Google I/O 2017
Robert Nyman
 
PDF
Introduction to Google Daydream
Robert Nyman
 
PDF
Predictability for the Web
Robert Nyman
 
PDF
The Future of Progressive Web Apps - View Source conference, Berlin 2016
Robert Nyman
 
PDF
The Future of the Web - Cold Front conference 2016
Robert Nyman
 
PDF
The Future of Progressive Web Apps - Google for Indonesia
Robert Nyman
 
PDF
Google tech & products
Robert Nyman
 
PDF
Introduction to Progressive Web Apps, Google Developer Summit, Seoul - South ...
Robert Nyman
 
PDF
Progressive Web Apps keynote, Google Developer Summit, Tokyo, Japan
Robert Nyman
 
PDF
The web - What it has, what it lacks and where it must go - keynote at Riga D...
Robert Nyman
 
PDF
The web - What it has, what it lacks and where it must go - Bulgaria Web Summ...
Robert Nyman
 
PDF
The web - What it has, what it lacks and where it must go - Istanbul
Robert Nyman
 
PDF
The web - What it has, what it lacks and where it must go
Robert Nyman
 
PDF
Google, the future and possibilities
Robert Nyman
 
PDF
Developer Relations in the Nordics
Robert Nyman
 
PDF
What is Developer Relations?
Robert Nyman
 
PDF
Android TV Introduction - Stockholm Android TV meetup
Robert Nyman
 
PDF
New improvements for web developers - frontend.fi, Helsinki
Robert Nyman
 
PDF
Mobile phone trends, user data & developer climate - frontend.fi, Helsinki
Robert Nyman
 
Have you tried listening?
Robert Nyman
 
Building for Your Next Billion - Google I/O 2017
Robert Nyman
 
Introduction to Google Daydream
Robert Nyman
 
Predictability for the Web
Robert Nyman
 
The Future of Progressive Web Apps - View Source conference, Berlin 2016
Robert Nyman
 
The Future of the Web - Cold Front conference 2016
Robert Nyman
 
The Future of Progressive Web Apps - Google for Indonesia
Robert Nyman
 
Google tech & products
Robert Nyman
 
Introduction to Progressive Web Apps, Google Developer Summit, Seoul - South ...
Robert Nyman
 
Progressive Web Apps keynote, Google Developer Summit, Tokyo, Japan
Robert Nyman
 
The web - What it has, what it lacks and where it must go - keynote at Riga D...
Robert Nyman
 
The web - What it has, what it lacks and where it must go - Bulgaria Web Summ...
Robert Nyman
 
The web - What it has, what it lacks and where it must go - Istanbul
Robert Nyman
 
The web - What it has, what it lacks and where it must go
Robert Nyman
 
Google, the future and possibilities
Robert Nyman
 
Developer Relations in the Nordics
Robert Nyman
 
What is Developer Relations?
Robert Nyman
 
Android TV Introduction - Stockholm Android TV meetup
Robert Nyman
 
New improvements for web developers - frontend.fi, Helsinki
Robert Nyman
 
Mobile phone trends, user data & developer climate - frontend.fi, Helsinki
Robert Nyman
 
Ad

Recently uploaded (20)

PDF
Next level data operations using Power Automate magic
Andries den Haan
 
PDF
DoS Attack vs DDoS Attack_ The Silent Wars of the Internet.pdf
CyberPro Magazine
 
PDF
Hyderabad MuleSoft In-Person Meetup (June 21, 2025) Slides
Ravi Tamada
 
PPTX
Practical Applications of AI in Local Government
OnBoard
 
PDF
Java 25 and Beyond - A Roadmap of Innovations
Ana-Maria Mihalceanu
 
PDF
Unlocking FME Flow’s Potential: Architecture Design for Modern Enterprises
Safe Software
 
PPTX
Reimaginando la Ciberdefensa: De Copilots a Redes de Agentes
Cristian Garcia G.
 
PPTX
Mastering Authorization: Integrating Authentication and Authorization Data in...
Hitachi, Ltd. OSS Solution Center.
 
PDF
5 Things to Consider When Deploying AI in Your Enterprise
Safe Software
 
PPTX
Smarter Governance with AI: What Every Board Needs to Know
OnBoard
 
PDF
The Future of Product Management in AI ERA.pdf
Alyona Owens
 
PDF
99 Bottles of Trust on the Wall — Operational Principles for Trust in Cyber C...
treyka
 
PDF
Enhancing Environmental Monitoring with Real-Time Data Integration: Leveragin...
Safe Software
 
PDF
Optimizing the trajectory of a wheel loader working in short loading cycles
Reno Filla
 
PDF
FME as an Orchestration Tool with Principles From Data Gravity
Safe Software
 
PPSX
Usergroup - OutSystems Architecture.ppsx
Kurt Vandevelde
 
PPTX
Paycifi - Programmable Trust_Breakfast_PPTXT
FinTech Belgium
 
PDF
Darley - FIRST Copenhagen Lightning Talk (2025-06-26) Epochalypse 2038 - Time...
treyka
 
PDF
Understanding The True Cost of DynamoDB Webinar
ScyllaDB
 
PDF
How to Comply With Saudi Arabia’s National Cybersecurity Regulations.pdf
Bluechip Advanced Technologies
 
Next level data operations using Power Automate magic
Andries den Haan
 
DoS Attack vs DDoS Attack_ The Silent Wars of the Internet.pdf
CyberPro Magazine
 
Hyderabad MuleSoft In-Person Meetup (June 21, 2025) Slides
Ravi Tamada
 
Practical Applications of AI in Local Government
OnBoard
 
Java 25 and Beyond - A Roadmap of Innovations
Ana-Maria Mihalceanu
 
Unlocking FME Flow’s Potential: Architecture Design for Modern Enterprises
Safe Software
 
Reimaginando la Ciberdefensa: De Copilots a Redes de Agentes
Cristian Garcia G.
 
Mastering Authorization: Integrating Authentication and Authorization Data in...
Hitachi, Ltd. OSS Solution Center.
 
5 Things to Consider When Deploying AI in Your Enterprise
Safe Software
 
Smarter Governance with AI: What Every Board Needs to Know
OnBoard
 
The Future of Product Management in AI ERA.pdf
Alyona Owens
 
99 Bottles of Trust on the Wall — Operational Principles for Trust in Cyber C...
treyka
 
Enhancing Environmental Monitoring with Real-Time Data Integration: Leveragin...
Safe Software
 
Optimizing the trajectory of a wheel loader working in short loading cycles
Reno Filla
 
FME as an Orchestration Tool with Principles From Data Gravity
Safe Software
 
Usergroup - OutSystems Architecture.ppsx
Kurt Vandevelde
 
Paycifi - Programmable Trust_Breakfast_PPTXT
FinTech Belgium
 
Darley - FIRST Copenhagen Lightning Talk (2025-06-26) Epochalypse 2038 - Time...
treyka
 
Understanding The True Cost of DynamoDB Webinar
ScyllaDB
 
How to Comply With Saudi Arabia’s National Cybersecurity Regulations.pdf
Bluechip Advanced Technologies
 

HTML5 - The 2012 of the Web