SlideShare a Scribd company logo
An Introduction to
     HTML5
An Introduction To HTML5
An Introduction To HTML5
An Introduction To HTML5
An Introduction To HTML5
An Introduction To HTML5
An Introduction To HTML5
An Introduction To HTML5
An Introduction To HTML5
An Introduction To HTML5
An Introduction To HTML5
An Introduction To HTML5
Web Hypertext Application Technology Working Group
                         -
                   WHATWG
Web Hypertext Application Technology Working Group
                         -
                   WHATWG
An Introduction To HTML5
What is HTML5?
An Introduction To HTML5
An Introduction To HTML5
An Introduction To HTML5
Backwards compatibility
Progressive enhancement
<!DOCTYPE html>
HTML or XHTML syntax?
An Introduction To HTML5
<DIV>A monkey</DIV>
<p id=john>John’s P</p>

<input type=text>
<input type="text">
<input type="text" />
<DIV>A monkey</DIV>
<p id=john>John’s P</p>

<input type=text>
<input type="text">
<input type="text" />
An Introduction To HTML5
As XHTML



<?xml version="1.0"?>
<html xmlns="http://www.w3.org/1999/xhtml">


MUST be application/xhtml+xml or application/xml

<noscript>Not in XHTML</noscript>
An Introduction To HTML5
<audio>


  <aside>       <nav>
                           <section>

           <hgroup>      <article>
<figure>
                            <time>
                      <header>
  <video>
                        <figcaption>
       <footer>
<input type="color">      <input type="range">


<input type="number">     <input type="email">

<input type="time">
                          <input type="search">
<input type="month">

                          <input type="tel">
<input type="date">


                          <input type="datetime">
<input type="week">

<input type="datetime-local">

<input type="url">
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>HTML5 example</title>
</head>

<body>

    <div id="container">
        <header role="banner">
            <h1>HTML5 example</h1>
            <p>A page with valid simple HTML5 markup complemented with WAI-ARIA landmark roles for accessibility.</p>
        </header>

          <nav role="navigation">
              <ul>
                   <li><a href="http://getfirefox.com">Download Firefox</a></li>
                   <li><a href="http://robertnyman.com/">Robert's talk</a></li>
              </ul>
          </nav>

          <article id="main" role="main">
              <section id="main-content">
                  <header>
                      <hgroup>
                           <h2>A title</h2>
                           <h3>Subtitle to the above title</h3>
                      </hgroup>
                  </header>

                  <article>
                      <p>Some content, created <time datetime="2010-01-31">January 31st 2010</time>.</p>
                  </article>
                  <article>
                      <p>Some more content - I guess you get the drift by now.</p>
                  </article>
              </section>

              <aside role="complementary">
                  This is just a demo page to see HTML5 markup and WAI-ARIA landmark roles in action.
              </aside>
          </article>

        <footer id="page-footer" role="contentinfo">
            Created by <a href="http://robertnyman.com/">Robert Nyman</a>
        </footer>
    </div>



</body>
</html>
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>HTML5 example</title>
</head>
<header role="banner">
  <h1>HTML5 example</h1>
  <p>
    A page with valid simple
    HTML5 markup complemented
    with WAI-ARIA landmark
    roles for accessibility.
  </p>
</header>
<nav role="navigation">
  <ul>
     <li>
       <a href="http://getfirefox.com">
          Download Firefox
       </a>
     </li>
     <li>
       <a href="http://robertnyman.com/">
          Robert's talk
       </a>
     </li>
  </ul>
</nav>
<article id="main" role="main">
   <section id="main-content">
       <header>
          <hgroup>
              <h2>A title</h2>
              <h3>Subtitle to the above title</h3>
          </hgroup>
       </header>

      <article>
         <p>
             Some content, created <time datetime="2010-01-31">January 31st 2010</time>.
         </p>
      </article>

      <article>
         <p>Some more content - I guess you get the drift by now.</p>
      </article>

   </section>



   <aside role="complementary">
       This is just a demo page to see HTML5 markup and WAI-ARIA landmark roles in action.
   </aside>
</article>
<footer id="page-footer" role="contentinfo">
  Created by <a href="http://robertnyman.com/">Robert Nyman</a>
</footer>
An Introduction To HTML5
<aside aria-live="polite" aria-relevant="additions" aria-atomic="true">
   Some sidebar content
</aside>
WAI-ARIA Authoring Practices 1.0
              Live Regions
                   -
http://www.w3.org/WAI/PF/aria-practices/
             #LiveRegions
Video
<video src="swedish-flag.ogv"></video>
<video src="swedish-flag.ogv" controls
  width="320" height="240">
</video>
<video controls>
  <source src="swedish-flag.mp4">
  <source src="swedish-flag.ogv">
  <p>
    Sorry, your web browser doesn't
    support the video element.
  </p>
</video>
An Introduction To HTML5
<video controls>
    <source src="http://robertnyman.com/video/swedish-flag.mp4">
    <source src="http://robertnyman.com/video/swedish-flag.ogv">
    <object width="425" height="340" type="application/x-shockwave-flash"
data="http://pics.robertnyman.com/ria/ShizVidz-2010012201.swf">
         <param name="movie" value="http://pics.robertnyman.com/ria/
ShizVidz-2010012201.swf">
         <param name="allowFullScreen" value="true">
         <param name="flashVars"
value="s=ZT0xJmk9MzE5NjcyNDUwJms9UUVOdUomYT01MjU0ODc5X21uWFdIJnU9cm9iZXJ0b
nltYW4=">
    </object>
    <p>Sorry, your web browser doesn't support, well, anything...</p>
</video>
An Introduction To HTML5
An Introduction To HTML5
An Introduction To HTML5
An Introduction To HTML5
“The WebM project is dedicated to developing a
high-quality, open video format for the web that
is freely available to everyone”
An Introduction To HTML5
An Introduction To HTML5
An Introduction To HTML5
Canvas
<canvas id="my-canvas" width="200" height="200">
    I am canvas
</canvas>
var canvas = document.getElementById("my-canvas"),
    context = canvas.getContext("2d");
var canvas = document.getElementById("my-canvas"),
    context = canvas.getContext("2d");

context.fillStyle = "#f00";
context.fillRect(0, 0, 100, 100);
context.strokeStyle = "#00f";
context.strokeRect(25, 25, 50, 50);
An Introduction To HTML5
var canvas5 = document.getElementById("my-canvas-5"),
    context5 = canvas5.getContext("2d"),
    img = document.createElement("img");

img.addEventListener("load", function () {
    context5.drawImage(img, 0, 0, 600, 200);
    // Get canvas content as a base64 image
    var base64Img = canvas5.toDataURL("image/png");
}, false);

img.setAttribute("src", "view.jpg");
data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAlgAAADICAYAAAA0n5+2AAAgAElEQVR4Acy925Icu5K0xz6QXGvPmEnv/1a60iPoRhcyk2n2XmQf5J97OIDKribX/
ueXmUBWAQjEGYFDIrOyH/63//3/eP8y6f19FQv68v7l8csVftbfHx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GMVSHhD26ra9w+8uCqYqKpY851oYKu4Sl+giDAsapMVccFse1aOey8/f/48H0DrZ+qMJzPHABFmJroK3zXj2dgKRK/
o3+ST2iILbXV11aR5mPO4hkT88Kf8i+PnLA8hP8P9ZTmD6mDXOhsJ1f9nApp7nkR01f5kIWe58Ue5C+9gU0chCM9eS9QeNU4TDn0TSChlRI40Tm5vjkOUZ/zMLL7UzJeFIc5JRH
HTML5 Canvas for Internet Explorer
                -
          explorercanvas
An Introduction To HTML5
An Introduction To HTML5
An Introduction To HTML5
History API
var url = "http://robertnyman.com",
title = "My blog",
state = {
    address : url
};

window.history.pushState(state.address, title, url);
window.history.replaceState(state.address, title, url);
Web Sockets
An Introduction To HTML5
An Introduction To HTML5
An Introduction To HTML5
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
Offline web applications

     Drag & drop
                       File API


Cross-document messaging
                           Web workers

        Editing - contenteditble


    Web storage
An Introduction To HTML5
An Introduction To HTML5
An Introduction To HTML5
An Introduction To HTML5
An Introduction To HTML5
An Introduction To HTML5
An Introduction To HTML5
An Introduction To HTML5
An Introduction To HTML5
An Introduction To HTML5
An Introduction To HTML5
Sjoerd Visscher - HTML5 Shiv
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>HTML5 IE fix</title>
    <script>document.createElement("article");</script>
</head>

<body>

    <article>Article content</article>

</body>
</html>
Remy Sharp - HTML5.js
An Introduction To HTML5
An Introduction To HTML5
An Introduction To HTML5
An Introduction To HTML5
An Introduction To HTML5
Robert Nyman
                                                                 robertnyman.com/speaking/
                                                                  robertnyman.com/html5/
                                                                   Twitter: @robertnyman
Pictures:

Ninja Turtle: http://www.originalprop.com/blog/2008/03/20/teenage-mutant-ninja-turtles-costume-                 Designed to exclude: http://www.ij.org/index.php?option=com_content&task=view&id=2603&Itemid=249
restoration/                                                                                                    Canvas: http://morethananelectrician.wordpress.com/2009/08/22/old-paint-but-a-new-canvas/
Bruce Willis: http://www.starsjournal.com/3192/bruce-willis-is-being-sued-for-4-million-dollars.html            Excited: http://www.flickr.com/photos/48600103384@N01/3679671408
Swedish flag: http://www.olssonfoto.se/JAlbum/SGP%202008%20Ullevi/slides/Svenska%20flaggan.html                   History: http://animatedtv.about.com/od/fgmultimedia/ig/-Family-Guy--Pictures/Griffin-Family-History.htm
Euro Coin: http://accidentaldong.blogspot.com/2009/10/euro-uh-oh.html                                           Sockets: http://www.gigaweb.com/products/view/31681/plug-socket-adult-costume.html
Smurfette in car: http://www.schleich-s.com/cms_schleich/cms_bilder/detail/40265.jpg                            AJAX: http://www.aqlanza.com/technologies01.html
Baby smurf one: http://images.esellerpro.com/13/I/106/33/baby%20A.jpg                                           Comet: http://www.blogiversity.org/blogs/cstanton/archive/2009/12/16/revealing-hidden-comet-strikes.aspx
Baby smurf two: http://www.arbgames.com.au/images/T/Smurf%20Baby%20With%20Teddy.jpg                             Flash: http://www.zerofractal.com/assets/error-flash.jpg
History (Robots): http://world.honda.com/ASIMO/history/image/top/title.jpg                                      You look nice today: http://laughingsquid.com/you-look-nice-today-a-twitter-induced-podcast/
2001: http://www.rense.com/general7/alchemkubrick.htm                                                           Yes, we can!: http://www.educationuk.org/pls/hot_bc/obj_pls_image?p_img_id=18470
W3C keys: http://www.w3.org/2008/Talks/1120-Budapest-WAIAGE/Overview.html                                       Pros and cons: http://www.mimifroufrou.com/scentedsalamander/2009/03/ifra_seminar_the_pros_cons_of.html
Mozilla logo: http://www.w3.org/2008/security-ws/papers/mozilla.html                                            Awesome!: http://randazza.wordpress.com/2009/02/17/competing-views-on-the-auto-admit-story-define-
Apple logo: http://www.mobilewhack.com/iphone-helps-apples-profits-soar-to-new-heights/                          awesome-2/
Google logo: http://userlogos.org/node/1120                                                                     Google wave logo: http://mediesverige.se/?p=470
Free!: http://trendwatching.com/trends/freelove.htm                                                             Google start page: http://www.google.com/press/images.html#productimages
Small dog/big dog: http://jaybot7.com/blog/wp-content/uploads/2009/09/bigcompany.jpg                            Strict teacher: http://teacherpictures.com/
HTML5 man: http://poomblox.net/2009/12/06/experience-html5-without-having-to-wait-13-years/                     Hands in the sky (affirmation): http://www.academyofawakening.com.au/affirmation_cd.htm
iPad spoof: http://failblog.org/2010/01/27/name-fail-photoshop-win/                                             Failure: http://www.hennessy.id.au/quentingeorge/archives/000378.html
Accessibility fail: http://failblog.org/2008/11/13/accessibility-fail/                                          IE 9: http://www.redmondpie.com/internet-explorer-9-to-be-announced-at-pdc-9140118/
Open API: http://www.socialsignal.com/news/2007/07/31/open-api                                                  Someone is wrong on the Internet: http://xkcd.com/386/
Backwards compatibility: http://www.aeropause.com/wordpress/archives/images/2009/03/                            Firefox: http://www.flickr.com/photos/tedion/3966234643/
backwardscompatibility.jpg                                                                                      Google Chrome: http://www.flickr.com/photos/tedion/3966233919/
Progressive enhancement: http://www.flickr.com/photos/cole007/4187641210/                                        Safari: http://www.rapidshareindex.com/Apple-Safari-v4-0-3-Portable_284132.html
Choice: http://www.naset.org/uploads/pics/choice.gif                                                            Opera: http://www.geek.com/wp-content/uploads/2009/11/Opera_512x512.png
Mixed martial arts: http://thegreatgeekmanual.com/blog/t-shirt-of-the-week-mixed-martial-arts-and-crafts        Internet Explorer trash: https://www.adaptavist.com/download/attachments/28999748/ie6trash.png
Ok icon: http://www.axialis.com/objects/ip_icon_02.shtml                                                        Darth Vader: http://threekidcircus.com/threekidcircus/archives/2009/09/darth_jenny.html
Flowers: http://successisnotanoption.tumblr.com/post/596574399/no-known-provenance-for-the-image-               This way/that way: http://www.fresheventure.com/77/internet-vs-offline-business-ownership/
stole-it-off                                                                                                    Don't worry, be happy: http://amiestreet.com/music/the-hit-co/don-t-worry-be-happy/
Shiny: http://punditkitchen.files.wordpress.com/2008/09/political-pictures-sarah-palin-john-mccain-look-shiny-   Squirrels: http://pictures.todaysbigthing.com/2010/03/08
object.jpg
Accessibility success: http://www.access-it-events.org/success.of.access-it.2009.php
Video: http://www.praxmatrix.com/video.php

More Related Content

PPTX
PDF
Introduction to CSS3
PPTX
HTML/HTML5
PPTX
Html5 semantics
PDF
Bootstrap 4 Tutorial PDF for Beginners - Learn Step by Step
Introduction to CSS3
HTML/HTML5
Html5 semantics
Bootstrap 4 Tutorial PDF for Beginners - Learn Step by Step

What's hot (20)

PPTX
Presentation about html5 css3
PPT
Css lecture notes
PDF
CSS3 Media Queries
PDF
Html,javascript & css
PDF
Fundamental CSS3
PDF
Flexbox and Grid Layout
PDF
HTML/CSS Crash Course (april 4 2017)
PPTX
Flask – Python
PPT
Introduction to HTML5
PDF
Introduction to HTML and CSS
PPTX
PPTX
PDF
CSS Selectors
PPTX
HTML CSS and Web Development
ODP
Introduction of Html/css/js
PPTX
HTML5 audio & video
PPTX
Bootstrap 3
PDF
HTML and CSS crash course!
PPTX
Html forms
Presentation about html5 css3
Css lecture notes
CSS3 Media Queries
Html,javascript & css
Fundamental CSS3
Flexbox and Grid Layout
HTML/CSS Crash Course (april 4 2017)
Flask – Python
Introduction to HTML5
Introduction to HTML and CSS
CSS Selectors
HTML CSS and Web Development
Introduction of Html/css/js
HTML5 audio & video
Bootstrap 3
HTML and CSS crash course!
Html forms
Ad

Viewers also liked (20)

PPTX
html5.ppt
PPSX
Introduction to Html5
PDF
HTML5 - Introduction
PPTX
Introduction to HTML5 & CSS3
PDF
Introduction to HTML5
PPTX
HTML5: a quick overview
PDF
HTML5 Introduction
KEY
An Introduction to HTML5
PPT
Css Ppt
PPTX
jQuery PPT
PPTX
Getting Started with HTML5 in Tech Com (STC 2012)
PDF
Introduction to JavaScript
PPT
Introduction to Javascript
PPT
Js ppt
PPT
JavaScript - An Introduction
PPT
Html Ppt
PDF
HTML5 Canvas - The Future of Graphics on the Web
PPT
Introduction to PHP
PDF
Społeczny Gisterek Makuch
PPTX
Introduction to HTML5
html5.ppt
Introduction to Html5
HTML5 - Introduction
Introduction to HTML5 & CSS3
Introduction to HTML5
HTML5: a quick overview
HTML5 Introduction
An Introduction to HTML5
Css Ppt
jQuery PPT
Getting Started with HTML5 in Tech Com (STC 2012)
Introduction to JavaScript
Introduction to Javascript
Js ppt
JavaScript - An Introduction
Html Ppt
HTML5 Canvas - The Future of Graphics on the Web
Introduction to PHP
Społeczny Gisterek Makuch
Introduction to HTML5
Ad

Similar to An Introduction To HTML5 (20)

PDF
HTML5, The Open Web, and what it means for you - Altran
PDF
HTML5 workshop, part 1
PDF
TOSSUG HTML5 讀書會 新標籤與表單
KEY
PDF
HTML5: Smart Markup for Smarter Websites [Future of Web Apps, Las Vegas 2011]
KEY
关于 Html5 那点事
KEY
Fronttechnieken met HTML5 en de Slice-template
PDF
PDF
HTML5 Essentials
PPT
HTML5 tags.ppt
PPSX
What is HTML5?
TXT
TURN YOUR CELL PHONE FROM A LIABILITY INTO AN ASSET!
KEY
Darwin web standards
PDF
What you need to know bout html5
PDF
Attractive HTML5~開発者の視点から~
KEY
Html5 Brown Bag
PDF
HTML5+CSS3 (入門編)
PDF
Front end ++: seo e flexbox
KEY
2022 HTML5: The future is now
PDF
Beginning Html 5 Presentation
HTML5, The Open Web, and what it means for you - Altran
HTML5 workshop, part 1
TOSSUG HTML5 讀書會 新標籤與表單
HTML5: Smart Markup for Smarter Websites [Future of Web Apps, Las Vegas 2011]
关于 Html5 那点事
Fronttechnieken met HTML5 en de Slice-template
HTML5 Essentials
HTML5 tags.ppt
What is HTML5?
TURN YOUR CELL PHONE FROM A LIABILITY INTO AN ASSET!
Darwin web standards
What you need to know bout html5
Attractive HTML5~開発者の視点から~
Html5 Brown Bag
HTML5+CSS3 (入門編)
Front end ++: seo e flexbox
2022 HTML5: The future is now
Beginning Html 5 Presentation

More from Robert Nyman (20)

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

Recently uploaded (20)

PDF
Smarter Business Operations Powered by IoT Remote Monitoring
PPTX
PA Analog/Digital System: The Backbone of Modern Surveillance and Communication
PDF
Why Endpoint Security Is Critical in a Remote Work Era?
PDF
REPORT: Heating appliances market in Poland 2024
PPTX
Telecom Fraud Prevention Guide | Hyperlink InfoSystem
PDF
Chapter 2 Digital Image Fundamentals.pdf
PDF
Google’s NotebookLM Unveils Video Overviews
PDF
CIFDAQ's Teaching Thursday: Moving Averages Made Simple
PDF
GamePlan Trading System Review: Professional Trader's Honest Take
PPTX
The-Ethical-Hackers-Imperative-Safeguarding-the-Digital-Frontier.pptx
PDF
How Onsite IT Support Drives Business Efficiency, Security, and Growth.pdf
PDF
BLW VOCATIONAL TRAINING SUMMER INTERNSHIP REPORT
PPTX
ABU RAUP TUGAS TIK kelas 8 hjhgjhgg.pptx
PDF
NewMind AI Monthly Chronicles - July 2025
PDF
agentic-ai-and-the-future-of-autonomous-systems.pdf
PDF
Automating ArcGIS Content Discovery with FME: A Real World Use Case
PDF
Transforming Manufacturing operations through Intelligent Integrations
PDF
CIFDAQ's Token Spotlight: SKY - A Forgotten Giant's Comeback?
PDF
A Day in the Life of Location Data - Turning Where into How.pdf
PDF
Test Bank, Solutions for Java How to Program, An Objects-Natural Approach, 12...
Smarter Business Operations Powered by IoT Remote Monitoring
PA Analog/Digital System: The Backbone of Modern Surveillance and Communication
Why Endpoint Security Is Critical in a Remote Work Era?
REPORT: Heating appliances market in Poland 2024
Telecom Fraud Prevention Guide | Hyperlink InfoSystem
Chapter 2 Digital Image Fundamentals.pdf
Google’s NotebookLM Unveils Video Overviews
CIFDAQ's Teaching Thursday: Moving Averages Made Simple
GamePlan Trading System Review: Professional Trader's Honest Take
The-Ethical-Hackers-Imperative-Safeguarding-the-Digital-Frontier.pptx
How Onsite IT Support Drives Business Efficiency, Security, and Growth.pdf
BLW VOCATIONAL TRAINING SUMMER INTERNSHIP REPORT
ABU RAUP TUGAS TIK kelas 8 hjhgjhgg.pptx
NewMind AI Monthly Chronicles - July 2025
agentic-ai-and-the-future-of-autonomous-systems.pdf
Automating ArcGIS Content Discovery with FME: A Real World Use Case
Transforming Manufacturing operations through Intelligent Integrations
CIFDAQ's Token Spotlight: SKY - A Forgotten Giant's Comeback?
A Day in the Life of Location Data - Turning Where into How.pdf
Test Bank, Solutions for Java How to Program, An Objects-Natural Approach, 12...

An Introduction To HTML5

Editor's Notes