SlideShare a Scribd company logo
1 of 25
HTML5
Contents
HTML5
 Origin
 Introduction
 Features
 Why HTMl5?
 Resources
 Demo HTML5 Applications.
Origin
   HTML5 introduces many cutting-edge features that
    enable developers to create apps and websites with the
    functionality, speed, performance, and experience of
    desktop applications

   HTML5 is a cooperation between the World Wide Web
    Consortium (W3C) and the Web Hypertext Application
    Technology Working Group (WHATWG).

   WHATWG was working with web forms and
    applications, and W3C was working with XHTML 2.0. In
    2006, they decided to cooperate and create a new
    version of HTML.

   Steve Jobs thrashed Adobe Flash in an Open Letter
    April 2010
Introduction
   HTMl* is the core technology of the World Wide Web
   With HTML, authors describe the structure of Web
    pages using Markup <tags>
   The new standard for HTML, XML, and HTML DOM
   New features should be based on HTML, CSS, DOM,
    and JavaScript
   Reduce the need for external plugins (like Flash)
   Better error handling
   More markup to replace scripting
   HTML5 should be device independent
   The development process should be visible to the
    public
Features
   Storage
   File Access
   Offline
   Multimedia
   Graphics
   Geolocation
Storage
   With HTML5, web pages can store data locally within
    the user's browser.

   Earlier, this was done with cookies. However, Web
    Storage is more secure and faster. The data is not
    included with every server request, but used ONLY
    when asked for. It is also possible to store large
    amounts of data, without affecting the website's
    performance.

   The data is stored in key/value pairs, and a web page
    can only access data stored by itself
Storage
   Two new objects for storing data on the client side:
 localStorage - stores data with no expiration date
 sessionStorage - stores data for one session


   The localStorage object stores the data with no
    expiration date. The data will not be deleted when the
    browser is closed, and will be available the next day,
    week, or year.

 Set an Item Value: localStorage.setItem("bar", foo);
 Get the Item Value: localStorage.getItem("bar")
 Remove the Item Value: localStorage.removeItem(“bar”)
Storage
   The sessionStorage object is equal to the localStorage
    object, except that it stores the data for only one
    session. The data is deleted when the user closes the
    browser window.

 Set an Item Value: sessionStorage.setItem("bar", foo);
 Get the Item Value: sessionStorage.getItem("bar")
 Remove the Item Value:
  sessionStorage.removeItem(“bar”)
File Access
   HTML5 provides very powerful APIs to interact with
    binary data and a user's local file system.

   The File APIs give web applications the ability to do
    things like read files [a]synchronously, create arbitrary
    Blobs, write files to a temporary location, recursively
    read a file directory, perform file drag and drop from the
    desktop to the browser, and upload binary data
    usingXMLHttpRequest2.


   You could use client-side logic to verify an upload's
    mimetype matches its file extension or restrict the size
    of an upload
File Access
function onInitFs(fs) {
 fs.root.getFile('log.txt', {}, function(fileEntry) {
  // Get a File object representing the file,
  // then use FileReader to read its contents.
  fileEntry.file(function(file) {
    var reader = new FileReader();
    reader.onloadend = function(e) {
     var txtArea = document.createElement('textarea');
     txtArea.value = this.result;
     document.body.appendChild(txtArea); };
    reader.readAsText(file);
  }, errorHandler);
 }, errorHandler); }
window.requestFileSystem(window.TEMPORARY, 1024*1024, onInitFs, errorHandler);
File Access
Offline
 It's becoming increasingly important for web-based
  applications to be accessible offline.
 Yes, all browsers have caching mechanisms, but they're
  unreliable and don't always work as you might expect.
  HTML5 addresses some of the annoyances of being
  offline with the ApplicationCache interface.

 Offline browsing - users can navigate your full site when
  they're offline
 Speed - cached resources are local, and therefore load
  faster.
 Reduced server load - the browser will only download
  resources from the server that have changed.
Offline
 The manifest file is a simple text file, which tells the
  browser what to cache (and what to never cache).
 The manifest file has three sections:


   CACHE MANIFEST - Files listed under this header will
    be cached after they are downloaded for the first time

   NETWORK - Files listed under this header require a
    connection to the server, and will never be cached

   FALLBACK - Files listed under this header specifies
    fallback pages if a page is inaccessible
Offline
   <!DOCTYPE HTML>
    <html manifest="demo.appcache">
    </html>


   CACHE MANIFEST
    # 2012-02-21 v1.0.0
    /theme.css
    /logo.gif
    /main.js

    NETWORK:
    login.asp

    FALLBACK:
    /html/ /offline.html
MultiMedia
   Audio and Video became first-class citizens on the Web
    with HTML5 the same way that other media types like
    images did in the past.

   Through their new APIs you can access, control and
    manipulate timeline data and network states of the files.
    With the coming additions to the APIs you will be able to
    read and write raw data to audio files (Audio Data API)
    or manipulate captions in videos (Timed Track API).

   But the real power of these new HTML elements stands
    out when they are combined with the other technologies
    of the web stack, be it Canvas, SVG, CSS or even
    WebGL.
MultiMedia
 To play an audio file in HTML5:
     <audio controls>
     <source src="horse.ogg" type="audio/ogg">
    <source src="horse.mp3" type="audio/mpeg">
    Your browser does not support the audio element.
    </audio>


To play a Video in HTML5:
     <video width="320" height="240" controls>
    <source src="movie.mp4" type="video/mp4">
    <source src="movie.ogg" type="video/ogg">
   Your browser does not support the video tag.
   </video>
Graphics
   The web has always been a visual medium, but a
    restricted one at best.

   Until recently, HTML developers were limited to CSS
    and JavaScript in order to produce animations or visual
    effects for their websites, or they would have to rely on
    a plugin like Flash.

   There are many new features which deal with graphics
    on the web: 2D Canvas, SVG, 3D CSS transforms etc.
Graphics
 The HTML5 <canvas> element is used to draw
  graphics, on the fly, via scripting (usually JavaScript).
 The <canvas> element is only a container for graphics.
  You must use a script to actually draw the graphics.

   <script>
    var c=document.getElementById("myCanvas");
    var ctx=c.getContext("2d");
    ctx.fillStyle="#FF0000";
    ctx.fillRect(0,0,150,75);
    </script>
Geolocation
 The HTML5 Geolocation API is used to get the
  geographical position of a user.
 Since this can compromise user privacy, the position is
  not available unless the user approves it.

 This functionality could be used as part of user queries,
  e.g.
 to guide someone to a destination point.
 It could also be used for "geo-tagging" some content the
  user has created, e.g. to mark where a photo was
  taken.

   The API is device-agnostic; it doesn't care how the
    browser determines location, so long as clients can
    request and receive location data in a standard way.
Geolocation
<script>
   var x=document.getElementById(“geo");
      function getLocation()
       {
        if (navigator.geolocation)
        {
         navigator.geolocation.getCurrentPosition(showPosition);
        }
        else{
      x.innerHTML="Geolocation is not supported by this browser."; }
      }
       function showPosition(position)
     {
      x.innerHTML="Latitude: " + position.coords.latitude +
      "<br>Longitude: " + position.coords.longitude;
    }
</script>
Why HTML5?
   Non - Monolithic technology
   A collection of features, technologies, and APIs
   Fast. Secure. Responsive. Interactive. Stunningly
    beautiful – Words associated with HTML5.
   Accelerates the pace of your innovation
   Enables you to seamlessly roll out your latest work to all
    your users simultaneously.
   Frees your users from the hassles of having to install
    apps across multiple devices.
   Fifth revision of the HTML markup language, CSS3, and
    a series of JavaScript APIs
Why HTML5?
   Enables you to create complex applications that
    previously could be created only for desktop platforms.
   Belong to W3C & WHATWG that includes Google,
    Microsoft, Apple, Mozilla, Facebook, IBM, HP, Adobe.
   Next Generation -web Apps can
   run high-performance graphics,
   work offline,
   store a large amount of data on the client,
   perform calculations fast,
   More interactivity and collaboration.
Resources
 http://w3c.org
 http://html5readiness.com
 https://developer.mozilla.org/en/HTML/HTML5
 http://w3schools.com/html5
 http://caniuse.com
 http://html5test.com
 http://dev.chromium.org/developers/web-platform-
  status
 http://html5demos.com
 http://developer.apple.com/safari
Demo
Demo

More Related Content

What's hot

Web components
Web componentsWeb components
Web componentsNoam Kfir
 
Html5 - Awesome APIs
Html5 - Awesome APIsHtml5 - Awesome APIs
Html5 - Awesome APIsDragos Ionita
 
Using Web Standards to create Interactive Data Visualizations for the Web
Using Web Standards to create Interactive Data Visualizations for the WebUsing Web Standards to create Interactive Data Visualizations for the Web
Using Web Standards to create Interactive Data Visualizations for the Webphilogb
 
New Elements & Features in HTML5
New Elements & Features in HTML5New Elements & Features in HTML5
New Elements & Features in HTML5Jamshid Hashimi
 
Java Web Programming on Google Cloud Platform [3/3] : Google Web Toolkit
Java Web Programming on Google Cloud Platform [3/3] : Google Web ToolkitJava Web Programming on Google Cloud Platform [3/3] : Google Web Toolkit
Java Web Programming on Google Cloud Platform [3/3] : Google Web ToolkitIMC Institute
 
WHAT IS HTML5? (at CSS Nite Osaka)
WHAT IS HTML5? (at CSS Nite Osaka)WHAT IS HTML5? (at CSS Nite Osaka)
WHAT IS HTML5? (at CSS Nite Osaka)Shumpei Shiraishi
 
google drive and the google drive sdk
google drive and the google drive sdkgoogle drive and the google drive sdk
google drive and the google drive sdkfirenze-gtug
 
Cloud Computing: Changing the software business
Cloud Computing: Changing the software businessCloud Computing: Changing the software business
Cloud Computing: Changing the software businessSoftware Park Thailand
 
Java Web Programming on Google Cloud Platform [2/3] : Datastore
Java Web Programming on Google Cloud Platform [2/3] : DatastoreJava Web Programming on Google Cloud Platform [2/3] : Datastore
Java Web Programming on Google Cloud Platform [2/3] : DatastoreIMC Institute
 
Full Stack Developer
Full Stack DeveloperFull Stack Developer
Full Stack DeveloperAkbar Uddin
 
Note of CGI and ASP
Note of CGI and ASPNote of CGI and ASP
Note of CGI and ASPWilliam Lee
 
[2015/2016] HTML5 and CSS3 Refresher
[2015/2016] HTML5 and CSS3 Refresher[2015/2016] HTML5 and CSS3 Refresher
[2015/2016] HTML5 and CSS3 RefresherIvano Malavolta
 
HTML5 Introduction
HTML5 IntroductionHTML5 Introduction
HTML5 Introductiondynamis
 
HTML5 Mullet: Forms & Input Validation
HTML5 Mullet: Forms & Input ValidationHTML5 Mullet: Forms & Input Validation
HTML5 Mullet: Forms & Input ValidationTodd Anglin
 

What's hot (20)

Web components
Web componentsWeb components
Web components
 
Html5 - Awesome APIs
Html5 - Awesome APIsHtml5 - Awesome APIs
Html5 - Awesome APIs
 
Using Web Standards to create Interactive Data Visualizations for the Web
Using Web Standards to create Interactive Data Visualizations for the WebUsing Web Standards to create Interactive Data Visualizations for the Web
Using Web Standards to create Interactive Data Visualizations for the Web
 
What is HTML5
What is HTML5What is HTML5
What is HTML5
 
New Elements & Features in HTML5
New Elements & Features in HTML5New Elements & Features in HTML5
New Elements & Features in HTML5
 
Apache Cordova 4.x
Apache Cordova 4.xApache Cordova 4.x
Apache Cordova 4.x
 
Java Web Programming on Google Cloud Platform [3/3] : Google Web Toolkit
Java Web Programming on Google Cloud Platform [3/3] : Google Web ToolkitJava Web Programming on Google Cloud Platform [3/3] : Google Web Toolkit
Java Web Programming on Google Cloud Platform [3/3] : Google Web Toolkit
 
WHAT IS HTML5? (at CSS Nite Osaka)
WHAT IS HTML5? (at CSS Nite Osaka)WHAT IS HTML5? (at CSS Nite Osaka)
WHAT IS HTML5? (at CSS Nite Osaka)
 
google drive and the google drive sdk
google drive and the google drive sdkgoogle drive and the google drive sdk
google drive and the google drive sdk
 
Krishnakumar Rajendran (1)
Krishnakumar Rajendran (1)Krishnakumar Rajendran (1)
Krishnakumar Rajendran (1)
 
Cloud Computing: Changing the software business
Cloud Computing: Changing the software businessCloud Computing: Changing the software business
Cloud Computing: Changing the software business
 
Java Web Programming on Google Cloud Platform [2/3] : Datastore
Java Web Programming on Google Cloud Platform [2/3] : DatastoreJava Web Programming on Google Cloud Platform [2/3] : Datastore
Java Web Programming on Google Cloud Platform [2/3] : Datastore
 
Full Stack Developer
Full Stack DeveloperFull Stack Developer
Full Stack Developer
 
Google Web Toolkit
Google Web ToolkitGoogle Web Toolkit
Google Web Toolkit
 
Note of CGI and ASP
Note of CGI and ASPNote of CGI and ASP
Note of CGI and ASP
 
[2015/2016] HTML5 and CSS3 Refresher
[2015/2016] HTML5 and CSS3 Refresher[2015/2016] HTML5 and CSS3 Refresher
[2015/2016] HTML5 and CSS3 Refresher
 
HTML5 Introduction
HTML5 IntroductionHTML5 Introduction
HTML5 Introduction
 
Html5 Overview
Html5 OverviewHtml5 Overview
Html5 Overview
 
HTML5 Mullet: Forms & Input Validation
HTML5 Mullet: Forms & Input ValidationHTML5 Mullet: Forms & Input Validation
HTML5 Mullet: Forms & Input Validation
 
5. HTML5
5. HTML55. HTML5
5. HTML5
 

Similar to HTML5 Features and Benefits

HTML5 introduction for beginners
HTML5 introduction for beginnersHTML5 introduction for beginners
HTML5 introduction for beginnersVineeth N Krishnan
 
Html5 workshop part 1
Html5 workshop part 1Html5 workshop part 1
Html5 workshop part 1NAILBITER
 
Introduction to HTML5
Introduction to HTML5Introduction to HTML5
Introduction to HTML5Gil Fink
 
Workshop HTML5+PhoneGap by Ivano Malavolta
Workshop HTML5+PhoneGap by Ivano Malavolta Workshop HTML5+PhoneGap by Ivano Malavolta
Workshop HTML5+PhoneGap by Ivano Malavolta Commit University
 
WordCamp Thessaloniki2011 The NextWeb
WordCamp Thessaloniki2011 The NextWebWordCamp Thessaloniki2011 The NextWeb
WordCamp Thessaloniki2011 The NextWebGeorge Kanellopoulos
 
Making Of PHP Based Web Application
Making Of PHP Based Web ApplicationMaking Of PHP Based Web Application
Making Of PHP Based Web ApplicationSachin Walvekar
 
HTML5 & CSS3 refresher for mobile apps
HTML5 & CSS3 refresher for mobile appsHTML5 & CSS3 refresher for mobile apps
HTML5 & CSS3 refresher for mobile appsIvano Malavolta
 
HTML5 for Rich User Experience
HTML5 for Rich User ExperienceHTML5 for Rich User Experience
HTML5 for Rich User ExperienceMahbubur Rahman
 
HTML5: An Introduction To Next Generation Web Development
HTML5: An Introduction To Next Generation Web DevelopmentHTML5: An Introduction To Next Generation Web Development
HTML5: An Introduction To Next Generation Web DevelopmentTilak Joshi
 
HTML5 Intoduction for Web Developers
HTML5 Intoduction for Web DevelopersHTML5 Intoduction for Web Developers
HTML5 Intoduction for Web DevelopersSascha Corti
 
Web Apps and more
Web Apps and moreWeb Apps and more
Web Apps and moreYan Shi
 
Web app and more
Web app and moreWeb app and more
Web app and morefaming su
 

Similar to HTML5 Features and Benefits (20)

HTML5 introduction for beginners
HTML5 introduction for beginnersHTML5 introduction for beginners
HTML5 introduction for beginners
 
Html5 workshop part 1
Html5 workshop part 1Html5 workshop part 1
Html5 workshop part 1
 
Qnx html5 hmi
Qnx html5 hmiQnx html5 hmi
Qnx html5 hmi
 
Introduction to HTML5
Introduction to HTML5Introduction to HTML5
Introduction to HTML5
 
Html5 Basics
Html5 BasicsHtml5 Basics
Html5 Basics
 
What is HTML 5?
What is HTML 5?What is HTML 5?
What is HTML 5?
 
HTML 5
HTML 5HTML 5
HTML 5
 
Word camp nextweb
Word camp nextwebWord camp nextweb
Word camp nextweb
 
Word camp nextweb
Word camp nextwebWord camp nextweb
Word camp nextweb
 
Workshop HTML5+PhoneGap by Ivano Malavolta
Workshop HTML5+PhoneGap by Ivano Malavolta Workshop HTML5+PhoneGap by Ivano Malavolta
Workshop HTML5+PhoneGap by Ivano Malavolta
 
WordCamp Thessaloniki2011 The NextWeb
WordCamp Thessaloniki2011 The NextWebWordCamp Thessaloniki2011 The NextWeb
WordCamp Thessaloniki2011 The NextWeb
 
Making Of PHP Based Web Application
Making Of PHP Based Web ApplicationMaking Of PHP Based Web Application
Making Of PHP Based Web Application
 
HTML5 & CSS3 refresher for mobile apps
HTML5 & CSS3 refresher for mobile appsHTML5 & CSS3 refresher for mobile apps
HTML5 & CSS3 refresher for mobile apps
 
HTML5 for Rich User Experience
HTML5 for Rich User ExperienceHTML5 for Rich User Experience
HTML5 for Rich User Experience
 
HTML5: An Introduction To Next Generation Web Development
HTML5: An Introduction To Next Generation Web DevelopmentHTML5: An Introduction To Next Generation Web Development
HTML5: An Introduction To Next Generation Web Development
 
Html5 & less css
Html5 & less cssHtml5 & less css
Html5 & less css
 
Html5 Future of WEB
Html5 Future of WEBHtml5 Future of WEB
Html5 Future of WEB
 
HTML5 Intoduction for Web Developers
HTML5 Intoduction for Web DevelopersHTML5 Intoduction for Web Developers
HTML5 Intoduction for Web Developers
 
Web Apps and more
Web Apps and moreWeb Apps and more
Web Apps and more
 
Web app and more
Web app and moreWeb app and more
Web app and more
 

Recently uploaded

AI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsAI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsMemoori
 
My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024The Digital Insurer
 
SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024Lorenzo Miniero
 
Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Scott Keck-Warren
 
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks..."LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...Fwdays
 
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024BookNet Canada
 
"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr BaganFwdays
 
Powerpoint exploring the locations used in television show Time Clash
Powerpoint exploring the locations used in television show Time ClashPowerpoint exploring the locations used in television show Time Clash
Powerpoint exploring the locations used in television show Time Clashcharlottematthew16
 
Artificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptxArtificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptxhariprasad279825
 
Unraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfUnraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfAlex Barbosa Coqueiro
 
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek SchlawackFwdays
 
Dev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebDev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebUiPathCommunity
 
CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):comworks
 
Streamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupStreamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupFlorian Wilhelm
 
Developer Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLDeveloper Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLScyllaDB
 
WordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your BrandWordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your Brandgvaughan
 
Connect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationConnect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationSlibray Presentation
 
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticscarlostorres15106
 
Understanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitectureUnderstanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitecturePixlogix Infotech
 
Vertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering TipsVertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering TipsMiki Katsuragi
 

Recently uploaded (20)

AI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsAI as an Interface for Commercial Buildings
AI as an Interface for Commercial Buildings
 
My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024
 
SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024
 
Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024
 
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks..."LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
 
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
 
"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan
 
Powerpoint exploring the locations used in television show Time Clash
Powerpoint exploring the locations used in television show Time ClashPowerpoint exploring the locations used in television show Time Clash
Powerpoint exploring the locations used in television show Time Clash
 
Artificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptxArtificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptx
 
Unraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfUnraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdf
 
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
 
Dev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebDev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio Web
 
CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):
 
Streamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupStreamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project Setup
 
Developer Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLDeveloper Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQL
 
WordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your BrandWordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your Brand
 
Connect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationConnect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck Presentation
 
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
 
Understanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitectureUnderstanding the Laravel MVC Architecture
Understanding the Laravel MVC Architecture
 
Vertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering TipsVertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering Tips
 

HTML5 Features and Benefits

  • 2. Contents HTML5  Origin  Introduction  Features  Why HTMl5?  Resources  Demo HTML5 Applications.
  • 3. Origin  HTML5 introduces many cutting-edge features that enable developers to create apps and websites with the functionality, speed, performance, and experience of desktop applications  HTML5 is a cooperation between the World Wide Web Consortium (W3C) and the Web Hypertext Application Technology Working Group (WHATWG).  WHATWG was working with web forms and applications, and W3C was working with XHTML 2.0. In 2006, they decided to cooperate and create a new version of HTML.  Steve Jobs thrashed Adobe Flash in an Open Letter April 2010
  • 4. Introduction  HTMl* is the core technology of the World Wide Web  With HTML, authors describe the structure of Web pages using Markup <tags>  The new standard for HTML, XML, and HTML DOM  New features should be based on HTML, CSS, DOM, and JavaScript  Reduce the need for external plugins (like Flash)  Better error handling  More markup to replace scripting  HTML5 should be device independent  The development process should be visible to the public
  • 5. Features  Storage  File Access  Offline  Multimedia  Graphics  Geolocation
  • 6. Storage  With HTML5, web pages can store data locally within the user's browser.  Earlier, this was done with cookies. However, Web Storage is more secure and faster. The data is not included with every server request, but used ONLY when asked for. It is also possible to store large amounts of data, without affecting the website's performance.  The data is stored in key/value pairs, and a web page can only access data stored by itself
  • 7. Storage  Two new objects for storing data on the client side:  localStorage - stores data with no expiration date  sessionStorage - stores data for one session  The localStorage object stores the data with no expiration date. The data will not be deleted when the browser is closed, and will be available the next day, week, or year.  Set an Item Value: localStorage.setItem("bar", foo);  Get the Item Value: localStorage.getItem("bar")  Remove the Item Value: localStorage.removeItem(“bar”)
  • 8. Storage  The sessionStorage object is equal to the localStorage object, except that it stores the data for only one session. The data is deleted when the user closes the browser window.  Set an Item Value: sessionStorage.setItem("bar", foo);  Get the Item Value: sessionStorage.getItem("bar")  Remove the Item Value: sessionStorage.removeItem(“bar”)
  • 9. File Access  HTML5 provides very powerful APIs to interact with binary data and a user's local file system.  The File APIs give web applications the ability to do things like read files [a]synchronously, create arbitrary Blobs, write files to a temporary location, recursively read a file directory, perform file drag and drop from the desktop to the browser, and upload binary data usingXMLHttpRequest2.  You could use client-side logic to verify an upload's mimetype matches its file extension or restrict the size of an upload
  • 10. File Access function onInitFs(fs) { fs.root.getFile('log.txt', {}, function(fileEntry) { // Get a File object representing the file, // then use FileReader to read its contents. fileEntry.file(function(file) { var reader = new FileReader(); reader.onloadend = function(e) { var txtArea = document.createElement('textarea'); txtArea.value = this.result; document.body.appendChild(txtArea); }; reader.readAsText(file); }, errorHandler); }, errorHandler); } window.requestFileSystem(window.TEMPORARY, 1024*1024, onInitFs, errorHandler);
  • 12. Offline  It's becoming increasingly important for web-based applications to be accessible offline.  Yes, all browsers have caching mechanisms, but they're unreliable and don't always work as you might expect. HTML5 addresses some of the annoyances of being offline with the ApplicationCache interface.  Offline browsing - users can navigate your full site when they're offline  Speed - cached resources are local, and therefore load faster.  Reduced server load - the browser will only download resources from the server that have changed.
  • 13. Offline  The manifest file is a simple text file, which tells the browser what to cache (and what to never cache).  The manifest file has three sections:  CACHE MANIFEST - Files listed under this header will be cached after they are downloaded for the first time  NETWORK - Files listed under this header require a connection to the server, and will never be cached  FALLBACK - Files listed under this header specifies fallback pages if a page is inaccessible
  • 14. Offline  <!DOCTYPE HTML> <html manifest="demo.appcache"> </html>  CACHE MANIFEST # 2012-02-21 v1.0.0 /theme.css /logo.gif /main.js NETWORK: login.asp FALLBACK: /html/ /offline.html
  • 15. MultiMedia  Audio and Video became first-class citizens on the Web with HTML5 the same way that other media types like images did in the past.  Through their new APIs you can access, control and manipulate timeline data and network states of the files. With the coming additions to the APIs you will be able to read and write raw data to audio files (Audio Data API) or manipulate captions in videos (Timed Track API).  But the real power of these new HTML elements stands out when they are combined with the other technologies of the web stack, be it Canvas, SVG, CSS or even WebGL.
  • 16. MultiMedia To play an audio file in HTML5: <audio controls> <source src="horse.ogg" type="audio/ogg"> <source src="horse.mp3" type="audio/mpeg"> Your browser does not support the audio element. </audio> To play a Video in HTML5: <video width="320" height="240" controls> <source src="movie.mp4" type="video/mp4"> <source src="movie.ogg" type="video/ogg"> Your browser does not support the video tag. </video>
  • 17. Graphics  The web has always been a visual medium, but a restricted one at best.  Until recently, HTML developers were limited to CSS and JavaScript in order to produce animations or visual effects for their websites, or they would have to rely on a plugin like Flash.  There are many new features which deal with graphics on the web: 2D Canvas, SVG, 3D CSS transforms etc.
  • 18. Graphics  The HTML5 <canvas> element is used to draw graphics, on the fly, via scripting (usually JavaScript).  The <canvas> element is only a container for graphics. You must use a script to actually draw the graphics.  <script> var c=document.getElementById("myCanvas"); var ctx=c.getContext("2d"); ctx.fillStyle="#FF0000"; ctx.fillRect(0,0,150,75); </script>
  • 19. Geolocation  The HTML5 Geolocation API is used to get the geographical position of a user.  Since this can compromise user privacy, the position is not available unless the user approves it.  This functionality could be used as part of user queries, e.g.  to guide someone to a destination point.  It could also be used for "geo-tagging" some content the user has created, e.g. to mark where a photo was taken.  The API is device-agnostic; it doesn't care how the browser determines location, so long as clients can request and receive location data in a standard way.
  • 20. Geolocation <script> var x=document.getElementById(“geo"); function getLocation() { if (navigator.geolocation) { navigator.geolocation.getCurrentPosition(showPosition); } else{ x.innerHTML="Geolocation is not supported by this browser."; } } function showPosition(position) { x.innerHTML="Latitude: " + position.coords.latitude + "<br>Longitude: " + position.coords.longitude; } </script>
  • 21. Why HTML5?  Non - Monolithic technology  A collection of features, technologies, and APIs  Fast. Secure. Responsive. Interactive. Stunningly beautiful – Words associated with HTML5.  Accelerates the pace of your innovation  Enables you to seamlessly roll out your latest work to all your users simultaneously.  Frees your users from the hassles of having to install apps across multiple devices.  Fifth revision of the HTML markup language, CSS3, and a series of JavaScript APIs
  • 22. Why HTML5?  Enables you to create complex applications that previously could be created only for desktop platforms.  Belong to W3C & WHATWG that includes Google, Microsoft, Apple, Mozilla, Facebook, IBM, HP, Adobe.  Next Generation -web Apps can  run high-performance graphics,  work offline,  store a large amount of data on the client,  perform calculations fast,  More interactivity and collaboration.
  • 23. Resources  http://w3c.org  http://html5readiness.com  https://developer.mozilla.org/en/HTML/HTML5  http://w3schools.com/html5  http://caniuse.com  http://html5test.com  http://dev.chromium.org/developers/web-platform- status  http://html5demos.com  http://developer.apple.com/safari
  • 24. Demo
  • 25. Demo