SlideShare a Scribd company logo
Html5
What is HTML5
1) HTML5 will be the new standard for
HTML.
2) HTML5 is a cooperation between the
World Wide Web Consortium (W3C) and the
Web Hypertext Application Technology
Working Group (WHATWG).
New Features in HTML5
1)    Canvas
2)    Geo Location
3)    Video and Audio
4)    Web storage
5)    Application Cache
6)    Server sent events
7)    Web Workers
8)    New Form Input types
9)    New Form Elements
10)   New Form Attributes
Canvas
• canvas is a rectangular area on an HTML
  page, and it is specified with the <canvas>
  element.
 var c=document.getElementById("myCanvas");
 var ctx=c.getContext("2d");
 var img=document.getElementById("scream");
 ctx.drawImage(img,10,10);




• To get canvas reference visit this link
  http://www.w3schools.com/tags/ref_canvas.asp
Geo Location
• The HTML5 Geo location API is used to get the
  geographical position of a user.

• We user the navigator object to get current
  position of the application.

• To get more information visit
  http://www.w3schools.com/html/html5_geolocatio
  n.asp
    navigator.geolocation.getCurrentPosition(showPosition);
    navigator.geolocation.watchPosition(showPosition);
Video Element
1) HTML5 defines a new element which specifies a
   standard way to embed a video/movie on a web
   page: the <video> element.
    Browser        MP4   WebM       Ogg
    Internet       YES   NO         NO
    Explorer 9+

    Chrome 6+      YES   YES        YES

    Firefox 3.6+   NO    YES        YES

    Safari 5+      YES   NO         NO
    Opera 10.6+    NO    YES        YES
Sound Element
1) HTML5 defines a new element which specifies a
   standard way to embed an audio file on a web
   page: the <audio> element.
 Internet Explorer   YES   NO         NO
 9+


 Chrome 6+           YES   YES        YES

 Firefox 3.6+        NO    YES        YES

 Safari 5+           YES   YES        NO

 Opera 10+           NO    YES        YES
Web 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.
Application Cache
1. HTML5 introduces application cache, which means that a web
   application is cached, and accessible without an internet
   connection.
2. Application cache gives an application three advantages:
       1. Offline browsing - users can use the application when
           they're offline
       2. Speed - cached resources load faster
       3. Reduced server load - the browser will only download
           updated/changed resources from the server



3. To enable application cache, include the manifest attribute in the
   document's <html> tag.
Server Sent Events
1. A server-sent event is when a web page
   automatically gets updates from a server.
2. This was also possible before, but the web page
   would have to ask if any updates were available.
   With server-sent events, the updates come
   automatically.
3. Examples: Facebook/Twitter updates, stock price
   updates, news feeds, sport results, etc.
4. The EventSource object is used to receive server-
   sent event notifications
5. Each time an update is received, the onmessage
   event occurs
Web Workers
1. When executing scripts in an HTML page, the
   page becomes unresponsive until the script is
   finished.
2. A web worker is a JavaScript that runs in the
   background, independently of other
   scripts, without affecting the performance of
   the page. You can continue to do whatever you
   want: clicking, selecting things, etc., while the
   web worker runs in the background.
New Form Input types
Html 5 provide new input types like
       1. color
       2. date
       3. datetime
       4. datetime-local
       5. email
       6. month
       7. number
       8. range
       9. search
       10.tel
       11. time
       12.url
       13. week
New Form Elements
HTML5 has the following new form
elements:
     1. <datalist>
     2. <keygen>
     3. <output>
Form Attributes
Html5 added new attribute to new and existing html tags
like video , audio , form and input tags
Other Features of HTML5
1)   Communication API
2)   Web Socket API
HTML5 with MVC
There are MVC toolkits that supports HTML5
like :
ASP.net MVC HTML5 Toolkit
Kendu UI
Questions?

More Related Content

PDF
Online mobile game server use Firebase realtime aatabase
PPT
2310 b 15
PDF
Chapter 1 (asp.net over view)
PPTX
IBM cognos work space configuration.pptx
PPT
Building and using web services with OAuth
PDF
Uploading multiple files to Google Cloud Storage
PPT
Online Bank Hack
PPS
04 asp.net session05
Online mobile game server use Firebase realtime aatabase
2310 b 15
Chapter 1 (asp.net over view)
IBM cognos work space configuration.pptx
Building and using web services with OAuth
Uploading multiple files to Google Cloud Storage
Online Bank Hack
04 asp.net session05

What's hot (20)

PPTX
No need to leave Connections. Bring your Domino applications into the Activit...
PPTX
Http to Https Get your WordPress website Compliant!
DOC
Tutorial asp.net
PPTX
Low Effort, High Impact: Ways to Add Value to your Drupal site
PPT
Open Networks Online 2.0
PPTX
Meteor + Ionic Introduction
PPT
Administrators admin tips tricks and hacks presented by an ex-googler
PPTX
ASP.NET Lecture 1
PPT
Configuring iis on windows server 2008 for asp.net application
PPTX
Sharepoint Saturday India Online best practice for developing share point sol...
PPS
Web Design World Flickr
PDF
Firefox OS Workshop @ Serbia & Montenegro - Training
PPT
ASP.NET Tutorial - Presentation 1
PPSX
Ajax part i
PPT
Appcelerator - using node.ACS (part 1)
PPT
PPTX
So You Want to Be a SharePoint Developer - SPS Utah 2015
PPS
Filesystems
PPTX
Web forms in ASP.net
PPS
Flickr Services
No need to leave Connections. Bring your Domino applications into the Activit...
Http to Https Get your WordPress website Compliant!
Tutorial asp.net
Low Effort, High Impact: Ways to Add Value to your Drupal site
Open Networks Online 2.0
Meteor + Ionic Introduction
Administrators admin tips tricks and hacks presented by an ex-googler
ASP.NET Lecture 1
Configuring iis on windows server 2008 for asp.net application
Sharepoint Saturday India Online best practice for developing share point sol...
Web Design World Flickr
Firefox OS Workshop @ Serbia & Montenegro - Training
ASP.NET Tutorial - Presentation 1
Ajax part i
Appcelerator - using node.ACS (part 1)
So You Want to Be a SharePoint Developer - SPS Utah 2015
Filesystems
Web forms in ASP.net
Flickr Services
Ad

Viewers also liked (7)

PDF
春雨路演
PPTX
使用kslite支持第三方内容开发
PPTX
目录结构规范
DOCX
Pure real natural
KEY
独爽不如众乐
PDF
PDF
使用Bigpipe提升浏览速度
春雨路演
使用kslite支持第三方内容开发
目录结构规范
Pure real natural
独爽不如众乐
使用Bigpipe提升浏览速度
Ad

Similar to Html5 (20)

PPTX
Html 5
ODP
Html5
PDF
PPT
Html5 Future of WEB
PDF
PPTX
HTML 5
PDF
IJCER (www.ijceronline.com) International Journal of computational Engineerin...
PDF
HTML5 Refresher
PPTX
PPTX
HTML 5
ODP
Html5
PPTX
HTML5-Tutorial-For-Beginn.6202488.pptx
PPT
HTML5: An Introduction To Next Generation Web Development
PDF
HTML5 Comprehensive Guide
ODP
Html5
PPTX
KEY
Everything you need to know about HTML5 in 15 min
PDF
HTML5 and CSS3 refresher
Html 5
Html5
Html5 Future of WEB
HTML 5
IJCER (www.ijceronline.com) International Journal of computational Engineerin...
HTML5 Refresher
HTML 5
Html5
HTML5-Tutorial-For-Beginn.6202488.pptx
HTML5: An Introduction To Next Generation Web Development
HTML5 Comprehensive Guide
Html5
Everything you need to know about HTML5 in 15 min
HTML5 and CSS3 refresher

Recently uploaded (20)

PDF
Design Thinking - Module 1 - Introduction To Design Thinking - Dr. Rohan Dasg...
PPTX
Wisp Textiles: Where Comfort Meets Everyday Style
PDF
The Advantages of Working With a Design-Build Studio
PPTX
DOC-20250430-WA0014._20250714_235747_0000.pptx
PDF
Interior Structure and Construction A1 NGYANQI
PPT
WHY_R12 Uaafafafpgradeaffafafafaffff.ppt
PPT
pump pump is a mechanism that is used to transfer a liquid from one place to ...
PPTX
CLASS_11_BUSINESS_STUDIES_PPT_CHAPTER_1_Business_Trade_Commerce.pptx
PPTX
AC-Unit1.pptx CRYPTOGRAPHIC NNNNFOR ALL
PPTX
Media And Information Literacy for Grade 12
PDF
Emailing DDDX-MBCaEiB.pdf DDD_Europe_2022_Intro_to_Context_Mapping_pdf-165590...
PPTX
Fundamental Principles of Visual Graphic Design.pptx
PDF
Trusted Executive Protection Services in Ontario — Discreet & Professional.pdf
PDF
Facade & Landscape Lighting Techniques and Trends.pptx.pdf
PDF
BRANDBOOK-Presidential Award Scheme-Kenya-2023
PDF
Phone away, tabs closed: No multitasking
PPT
EGWHermeneuticsffgggggggggggggggggggggggggggggggg.ppt
PDF
SEVA- Fashion designing-Presentation.pdf
PPTX
Special finishes, classification and types, explanation
PPTX
YV PROFILE PROJECTS PROFILE PRES. DESIGN
Design Thinking - Module 1 - Introduction To Design Thinking - Dr. Rohan Dasg...
Wisp Textiles: Where Comfort Meets Everyday Style
The Advantages of Working With a Design-Build Studio
DOC-20250430-WA0014._20250714_235747_0000.pptx
Interior Structure and Construction A1 NGYANQI
WHY_R12 Uaafafafpgradeaffafafafaffff.ppt
pump pump is a mechanism that is used to transfer a liquid from one place to ...
CLASS_11_BUSINESS_STUDIES_PPT_CHAPTER_1_Business_Trade_Commerce.pptx
AC-Unit1.pptx CRYPTOGRAPHIC NNNNFOR ALL
Media And Information Literacy for Grade 12
Emailing DDDX-MBCaEiB.pdf DDD_Europe_2022_Intro_to_Context_Mapping_pdf-165590...
Fundamental Principles of Visual Graphic Design.pptx
Trusted Executive Protection Services in Ontario — Discreet & Professional.pdf
Facade & Landscape Lighting Techniques and Trends.pptx.pdf
BRANDBOOK-Presidential Award Scheme-Kenya-2023
Phone away, tabs closed: No multitasking
EGWHermeneuticsffgggggggggggggggggggggggggggggggg.ppt
SEVA- Fashion designing-Presentation.pdf
Special finishes, classification and types, explanation
YV PROFILE PROJECTS PROFILE PRES. DESIGN

Html5

  • 2. What is HTML5 1) HTML5 will be the new standard for HTML. 2) HTML5 is a cooperation between the World Wide Web Consortium (W3C) and the Web Hypertext Application Technology Working Group (WHATWG).
  • 3. New Features in HTML5 1) Canvas 2) Geo Location 3) Video and Audio 4) Web storage 5) Application Cache 6) Server sent events 7) Web Workers 8) New Form Input types 9) New Form Elements 10) New Form Attributes
  • 4. Canvas • canvas is a rectangular area on an HTML page, and it is specified with the <canvas> element. var c=document.getElementById("myCanvas"); var ctx=c.getContext("2d"); var img=document.getElementById("scream"); ctx.drawImage(img,10,10); • To get canvas reference visit this link http://www.w3schools.com/tags/ref_canvas.asp
  • 5. Geo Location • The HTML5 Geo location API is used to get the geographical position of a user. • We user the navigator object to get current position of the application. • To get more information visit http://www.w3schools.com/html/html5_geolocatio n.asp navigator.geolocation.getCurrentPosition(showPosition); navigator.geolocation.watchPosition(showPosition);
  • 6. Video Element 1) HTML5 defines a new element which specifies a standard way to embed a video/movie on a web page: the <video> element. Browser MP4 WebM Ogg Internet YES NO NO Explorer 9+ Chrome 6+ YES YES YES Firefox 3.6+ NO YES YES Safari 5+ YES NO NO Opera 10.6+ NO YES YES
  • 7. Sound Element 1) HTML5 defines a new element which specifies a standard way to embed an audio file on a web page: the <audio> element. Internet Explorer YES NO NO 9+ Chrome 6+ YES YES YES Firefox 3.6+ NO YES YES Safari 5+ YES YES NO Opera 10+ NO YES YES
  • 8. Web 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.
  • 9. Application Cache 1. HTML5 introduces application cache, which means that a web application is cached, and accessible without an internet connection. 2. Application cache gives an application three advantages: 1. Offline browsing - users can use the application when they're offline 2. Speed - cached resources load faster 3. Reduced server load - the browser will only download updated/changed resources from the server 3. To enable application cache, include the manifest attribute in the document's <html> tag.
  • 10. Server Sent Events 1. A server-sent event is when a web page automatically gets updates from a server. 2. This was also possible before, but the web page would have to ask if any updates were available. With server-sent events, the updates come automatically. 3. Examples: Facebook/Twitter updates, stock price updates, news feeds, sport results, etc. 4. The EventSource object is used to receive server- sent event notifications 5. Each time an update is received, the onmessage event occurs
  • 11. Web Workers 1. When executing scripts in an HTML page, the page becomes unresponsive until the script is finished. 2. A web worker is a JavaScript that runs in the background, independently of other scripts, without affecting the performance of the page. You can continue to do whatever you want: clicking, selecting things, etc., while the web worker runs in the background.
  • 12. New Form Input types Html 5 provide new input types like 1. color 2. date 3. datetime 4. datetime-local 5. email 6. month 7. number 8. range 9. search 10.tel 11. time 12.url 13. week
  • 13. New Form Elements HTML5 has the following new form elements: 1. <datalist> 2. <keygen> 3. <output>
  • 14. Form Attributes Html5 added new attribute to new and existing html tags like video , audio , form and input tags
  • 15. Other Features of HTML5 1) Communication API 2) Web Socket API
  • 16. HTML5 with MVC There are MVC toolkits that supports HTML5 like : ASP.net MVC HTML5 Toolkit Kendu UI

Editor's Notes

  • #4: http://www.w3schools.com/tags/tryit.asp?filename=tryhtml5_menu
  • #5: Example can be found here http://www.w3schools.com/html/tryit.asp?filename=tryhtml5_canvas_tut_imgWebGL is based on the use of the canvashttp://js13kgames.com/games/johnny-smiter-13th-knight/index.html
  • #6: Example can be found here http://www.w3schools.com/html/tryit.asp?filename=tryhtml5_geolocation
  • #7: Video tag reference is http://www.w3schools.com/tags/tag_video.asphttp://www.w3schools.com/html5/tryit.asp?filename=tryhtml5_video_posterhttp://www.w3schools.com/html/tryit.asp?filename=tryhtml5_video_js_prop
  • #8: Audio tag reference http://www.w3schools.com/tags/tag_audio.aspThe HTML5 DOM has methods, properties, and events for the &lt;audio&gt; and &lt;video&gt; elements.For more information visit http://www.w3schools.com/tags/ref_av_dom.asp
  • #9: Web Storage uses two kinds of storage local storage and session storageExample can be found here http://www.w3schools.com/html/tryit.asp?filename=tryhtml5_webstorage_local_clickcount
  • #10: 1) 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 timeNETWORK - Files listed under this header require a connection to the server, and will never be cachedFALLBACK - Files listed under this header specifies fallback pages if a page is inaccessible CACHE MANIFEST# 2012-02-21 v1.0.0/theme.css/logo.gif/main.jsNETWORK:login.aspFALLBACK:/html/ /offline.html2) Example http://www.w3schools.com/html/tryhtml5_html_manifest.htm3) If you wanted to update cache you either update manifest file or call window.applicationCache.update()
  • #11: http://www.w3schools.com/html/tryit.asp?filename=tryhtml5_sse
  • #12: For example on web workers visit http://www.w3schools.com/html/tryit.asp?filename=tryhtml5_webworker
  • #14: Input list example http://www.w3schools.com/html/tryit.asp?filename=tryhtml5_datalistOutput example http://www.w3schools.com/html/tryit.asp?filename=tryhtml5_output
  • #15: New attributes for &lt;form&gt;:autocompleteNovalidateNew attributes for &lt;input&gt;:autocompleteautofocusformformactionformenctypeformmethodformnovalidateformtargetheight and widthlistmin and maxmultiplepattern (regexp)placeholderrequiredstep&lt;Video &gt;:AutoplayLoopControlsWidthHeightPosterSrcPreload&lt;Audio&gt;:AutoplayLoopControlsSrcPreload