SlideShare uma empresa Scribd logo
1 de 21
Baixar para ler offline
Introduction to HTML5
         By Kunal Johar




      Brown Bag Presentations
Introduction to HTML5
Reference                                 By Kunal Johar



   • This presentation is based heavily
     on information taken from Dive
     into HTML5


   • http://diveintohtml5.org/


   • Buy the book!
     http://www.amazon.com/HTML5-
     Up-Running-Mark-
     Pilgrim/dp/0596806027?creativeAS
     IN=0596806027




Brown Bag Presentations
Introduction to HTML5
What is HTML5?                                                        By Kunal Johar




   • A series of upgrades to HTML4
        • Makes HTML4/CSS/XHTML Cleaner to write
        • Allows for creation of Rich Internet Applications (RIA)
        • Allows support for new devices (mobile/tablet)
        • Allows for concept of semantic web



   • It IS NOT an all or nothing upgrade
        • Features of HTML5 have been in use for years
        • <canvas> for Cufon support
        • Geolocation
                                                Not exactly HTML5 



Brown Bag Presentations
Introduction to HTML5
Why HTML5?                                                 By Kunal Johar




   • What is HTML4?
        • Standard markup by W3C



   • What is a Standard?
        • Why do we use <img src=“some_url”>
          instead of <embed type=“image” url=“some_url”>
        • Why do we now use <img src=“some_url”/>


   • Okay so why HTML5 not XHTML 3.0?
        • We can ask Lil Jon




Brown Bag Presentations
Introduction to HTML5
WHAT!?                    By Kunal Johar




            WHAT!?
Brown Bag Presentations
Introduction to HTML5
WHAT / W3C                                                     By Kunal Johar




   • Web Hypertext Application Technology (WHAT)
     Working Group
        • Formed in 2004
        • Studied how web browsers render HTML
             •    Then study how they render malformed HTML

   • Proposal: Make HTML a living standard
        • HTML5 to be “finalized” in 5+ years from now


   • WHATWG vs W3C
        • Live in unison as long as the other doesn’t do something
          stupid



Brown Bag Presentations
Introduction to HTML5
How to Use HTML5                                            By Kunal Johar




   • Before the <html> element we specify a doctype
        • Right? 
        • For HTML5 use <!DOCTYPE html>



   • What if the current browser is not “HTML5 Compliant”
        • “HTML5 Compliance” is a buzzword
        • “Does not support {feature x} of HTML5” would be more
          appropriate




Brown Bag Presentations
Introduction to HTML5
HTML5 Feature Detection                                         By Kunal Johar




   • The hard way
        • Use javascript to create object of a feature
        • If {!!object} {degredation code}


   • Modernizr.js
        • MIT Licensed library
        • if (!Modernizr.geolocation){ degredation code }
        • Modernizr.load ({ test: Modernizer.geolocation,
          yep: some_library.js, nope: some_library.html4.js})




Brown Bag Presentations
Introduction to HTML5
HTML5 Features                                    By Kunal Johar




   • Canvas
   • Video                             Remember to
   • Local Storage                     degrade nicely

   • Web Worker
   • Offline Support
   • Semantic Web (Microdata)
   • Geolocation (not exactly HTML5)
   • History APIs
   • Form Improvements


Brown Bag Presentations
Introduction to HTML5
Canvas                                                 By Kunal Johar




   • <canvas>
        • Area we can draw in (lines, text*, images)
        • 2D Surface
             – 3D may come later

        • Useful for custom Uis and games
        • Can detect events within a region
             – On click / on hover
             – On touch

        • Use excanvas.js for clean degradation




Brown Bag Presentations
Introduction to HTML5
Video                                                 By Kunal Johar




   • <video>
        • Does to video what <img> does for images
        • Allows video playback without Flash
             – File formats could be an issue
             – Similar to PNG format for images



        • Modernizr can be used for codec detection




Brown Bag Presentations
Introduction to HTML5
Data Storage                                                 By Kunal Johar




   • Improvements to cookies
        • Cookies limited to 4K
        • Data format as associative array / json



   • Fallacies
        • Supports Key/Value pairs only
        • No standard format for more advanced databases (SQLLite /
          IndexDB) across all browsers


 • Google Gears / dojox.storage.js for degradation support


Brown Bag Presentations
Introduction to HTML5
Web Workers                                        By Kunal Johar




   • Background processing of java
        • Most implementations run worker in new
          thread
        • Workers do not have access to DOM
        • Great for asynchronous tasks


   • Thoughts on some good uses?


 • Degradation with jquery timer




Brown Bag Presentations
Introduction to HTML5
Offline Support, Semantic Web                                By Kunal Johar




   • Offline Support
        • Support for cache.manifest
        • Asks browser to download files for offline use
        • Combine with local storage / non-standardized database

   • Semantic web
        • Instead of <h1> <hgroup>
        • Instead of <li> <nav>
        • Instead of <div> <article> <section>
        • Great for search engines and the future!
        • <img> <audio> <video>


Brown Bag Presentations
Introduction to HTML5
History APIs                                              By Kunal Johar




   • Back / Forward
        • Works great with static pages
        • Painful with dynamic UIs (multiple tab views)
        • HTML5 creates api to push state / pop state
             – History.pushState(json string)



   • Degradation
        • Use of window.hash (#somevalue)
        • Jquery history.js




Brown Bag Presentations
Introduction to HTML5
Geolocation                                                 By Kunal Johar




   • You said it isn’t HTML5
        • W3C Geolocation WG
        • Included in HTML5 discussion through marketing of new
          web browsers

   • Location service (wifi db, cell tower, gps) gives raw data
        • Data: Latitude, Longitude, Heading, Accuracy
        • Can “request” high or low accuracy
             – Device specific of course

   • How would you handle degradation?




Brown Bag Presentations
Introduction to HTML5
Form Improvements            By Kunal Johar




   • Helper Functions
        • Placeholder text
        • Autofocus


   • Validation


   • New Fields




Brown Bag Presentations
Introduction to HTML5
Form Improvements: Helper Functions                           By Kunal Johar




   • Placeholder text
        • <input name =“s” placeholder=“Email”>




   • Autofocus
        • <input name =“s” autofocus>
        • Better control of focus when page loads or when pressing tab


   • Degrade
        • Jquery or javascript du jour



Brown Bag Presentations
Introduction to HTML5
Form Improvements: Validation                                    By Kunal Johar




   • Examples
        • Email validation: <input name =“s” type=“email”>
        • Required field: <input name =“s” required>
        • Others: type=“url”, “number” with min= and max=

   • Stopping Validation
        • Validation is on by default for a form with the type specification
        • <form novalidate> will prevent this


   • Degrade
        • Jquery or javascript du jour



Brown Bag Presentations
Introduction to HTML5
Form Improvements: New Types                          By Kunal Johar




   • Supports better “selector” views and keyboard prompts
   • Types
        • Email, Url
        • Number (min, max, step, value)
        • Range (min, max, step, value)
        • Date, month, week, time, etc (opera only)
        • Color (opera only)
        • Search

   • WHATWG found that all browsers degrade to regular text
     boxes


Brown Bag Presentations
Thank You
kjohar@vofficeware.com




    1629 K St NW, STE 300,
    Washington, DC 20006

    Phone (202) 478-9620
     Fax (888) 647-6110
  web: www.vofficeware.com

Mais conteúdo relacionado

Mais procurados

Web Development using Ruby on Rails
Web Development using Ruby on RailsWeb Development using Ruby on Rails
Web Development using Ruby on Rails
Avi Kedar
 
JavaScript Libraries (Ajax Exp 2006)
JavaScript Libraries (Ajax Exp 2006)JavaScript Libraries (Ajax Exp 2006)
JavaScript Libraries (Ajax Exp 2006)
jeresig
 
5 Common Mistakes You are Making on your Website
 5 Common Mistakes You are Making on your Website 5 Common Mistakes You are Making on your Website
5 Common Mistakes You are Making on your Website
Acquia
 
Javascript Libraries
Javascript LibrariesJavascript Libraries
Javascript Libraries
elliando dias
 
My site is slow
My site is slowMy site is slow
My site is slow
hernanibf
 

Mais procurados (20)

Simplifying Use of Hive with the Hive Query Tool
Simplifying Use of Hive with the Hive Query ToolSimplifying Use of Hive with the Hive Query Tool
Simplifying Use of Hive with the Hive Query Tool
 
Picnic Software - Developing a flexible and scalable application
Picnic Software - Developing a flexible and scalable applicationPicnic Software - Developing a flexible and scalable application
Picnic Software - Developing a flexible and scalable application
 
How NOT to get lost in the current JavaScript landscape
How NOT to get lost in the current JavaScript landscapeHow NOT to get lost in the current JavaScript landscape
How NOT to get lost in the current JavaScript landscape
 
Web Development using Ruby on Rails
Web Development using Ruby on RailsWeb Development using Ruby on Rails
Web Development using Ruby on Rails
 
Lean Startup with WebObjects
Lean Startup with WebObjectsLean Startup with WebObjects
Lean Startup with WebObjects
 
Java script nirvana in netbeans [con5679]
Java script nirvana in netbeans [con5679]Java script nirvana in netbeans [con5679]
Java script nirvana in netbeans [con5679]
 
Drupal By Design - Business Case for Drupal
Drupal By Design - Business Case for DrupalDrupal By Design - Business Case for Drupal
Drupal By Design - Business Case for Drupal
 
Html5 public
Html5 publicHtml5 public
Html5 public
 
Front End page speed performance improvements for Drupal
Front End page speed performance improvements for DrupalFront End page speed performance improvements for Drupal
Front End page speed performance improvements for Drupal
 
Flexible UI Components for a Multi-Framework World
Flexible UI Components for a Multi-Framework WorldFlexible UI Components for a Multi-Framework World
Flexible UI Components for a Multi-Framework World
 
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
 
Offline capable web applications with Google Gears and Dojo Offline
Offline capable web applications with Google Gears and Dojo OfflineOffline capable web applications with Google Gears and Dojo Offline
Offline capable web applications with Google Gears and Dojo Offline
 
JavaScript Libraries (Ajax Exp 2006)
JavaScript Libraries (Ajax Exp 2006)JavaScript Libraries (Ajax Exp 2006)
JavaScript Libraries (Ajax Exp 2006)
 
5 Common Mistakes You are Making on your Website
 5 Common Mistakes You are Making on your Website 5 Common Mistakes You are Making on your Website
5 Common Mistakes You are Making on your Website
 
Modern javascript
Modern javascriptModern javascript
Modern javascript
 
SSJS, NoSQL, GAE and AppengineJS
SSJS, NoSQL, GAE and AppengineJSSSJS, NoSQL, GAE and AppengineJS
SSJS, NoSQL, GAE and AppengineJS
 
Javascript Libraries
Javascript LibrariesJavascript Libraries
Javascript Libraries
 
A web app in pure Clojure
A web app in pure ClojureA web app in pure Clojure
A web app in pure Clojure
 
My site is slow
My site is slowMy site is slow
My site is slow
 
High Availability Perl DBI + MySQL
High Availability Perl DBI + MySQLHigh Availability Perl DBI + MySQL
High Availability Perl DBI + MySQL
 

Semelhante a Introduction to HTML5

Talk Paris Infovis 091207132953 Phpapp01(2)
Talk Paris Infovis 091207132953 Phpapp01(2)Talk Paris Infovis 091207132953 Phpapp01(2)
Talk Paris Infovis 091207132953 Phpapp01(2)
johnnybiz
 
Dive Into HTML5
Dive Into HTML5Dive Into HTML5
Dive Into HTML5
Doris Chen
 

Semelhante a Introduction to HTML5 (20)

Rapid Evolution of Web Dev? aka Talking About The Web
Rapid Evolution of Web Dev? aka Talking About The WebRapid Evolution of Web Dev? aka Talking About The Web
Rapid Evolution of Web Dev? aka Talking About The Web
 
State of the Web
State of the WebState of the Web
State of the Web
 
HTML5 History & Features
HTML5 History & FeaturesHTML5 History & Features
HTML5 History & Features
 
RubyConf China 2015 - Rails off assets pipeline
RubyConf China 2015 - Rails off assets pipelineRubyConf China 2015 - Rails off assets pipeline
RubyConf China 2015 - Rails off assets pipeline
 
Talk Paris Infovis 091207132953 Phpapp01(2)
Talk Paris Infovis 091207132953 Phpapp01(2)Talk Paris Infovis 091207132953 Phpapp01(2)
Talk Paris Infovis 091207132953 Phpapp01(2)
 
Conferences andcommunity
Conferences andcommunityConferences andcommunity
Conferences andcommunity
 
Wheel.js
Wheel.jsWheel.js
Wheel.js
 
Html5 n css3
Html5 n css3Html5 n css3
Html5 n css3
 
Html5
Html5Html5
Html5
 
Dive Into HTML5
Dive Into HTML5Dive Into HTML5
Dive Into HTML5
 
Mobile html5
Mobile html5Mobile html5
Mobile html5
 
Html5 - the new kid on the block
Html5 - the new kid on the blockHtml5 - the new kid on the block
Html5 - the new kid on the block
 
Greenfield Java 2013
Greenfield Java 2013Greenfield Java 2013
Greenfield Java 2013
 
Shift Remote: JS - Javascript Build Tools: Past & Beyond - Shedrack Akintayo
Shift Remote: JS - Javascript Build Tools: Past & Beyond - Shedrack Akintayo Shift Remote: JS - Javascript Build Tools: Past & Beyond - Shedrack Akintayo
Shift Remote: JS - Javascript Build Tools: Past & Beyond - Shedrack Akintayo
 
How HTML5 missed its graduation - #TrondheimDC
How HTML5 missed its graduation - #TrondheimDCHow HTML5 missed its graduation - #TrondheimDC
How HTML5 missed its graduation - #TrondheimDC
 
Html5
Html5Html5
Html5
 
Working and Features of HTML5 and PhoneGap - An Overview
Working and Features of HTML5 and PhoneGap - An OverviewWorking and Features of HTML5 and PhoneGap - An Overview
Working and Features of HTML5 and PhoneGap - An Overview
 
Building a real time html5 app for mobile devices
Building a real time html5 app for mobile devicesBuilding a real time html5 app for mobile devices
Building a real time html5 app for mobile devices
 
HTML5のご紹介
HTML5のご紹介HTML5のご紹介
HTML5のご紹介
 
HTML5 in IE9
HTML5 in IE9HTML5 in IE9
HTML5 in IE9
 

Mais de Kunal Johar (6)

Cloud fail scaling to infinity but not beyond
Cloud fail   scaling to infinity but not beyondCloud fail   scaling to infinity but not beyond
Cloud fail scaling to infinity but not beyond
 
Career - Senior Design (Computer Science)
Career - Senior Design (Computer Science)Career - Senior Design (Computer Science)
Career - Senior Design (Computer Science)
 
Design part iii - Ready to Build
Design part iii - Ready to BuildDesign part iii - Ready to Build
Design part iii - Ready to Build
 
Journey of an Idea to Invention Part 1 of 3
Journey of an Idea to Invention Part 1 of 3Journey of an Idea to Invention Part 1 of 3
Journey of an Idea to Invention Part 1 of 3
 
Real world software launch
Real world software launchReal world software launch
Real world software launch
 
Screencasting and Presenting for Engineers
Screencasting and Presenting for EngineersScreencasting and Presenting for Engineers
Screencasting and Presenting for Engineers
 

Último

Salient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functionsSalient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functions
KarakKing
 

Último (20)

Unit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdfUnit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdf
 
How to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSHow to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POS
 
Salient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functionsSalient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functions
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.
 
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptxOn_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
 
Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
 
How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17
 
Fostering Friendships - Enhancing Social Bonds in the Classroom
Fostering Friendships - Enhancing Social Bonds  in the ClassroomFostering Friendships - Enhancing Social Bonds  in the Classroom
Fostering Friendships - Enhancing Social Bonds in the Classroom
 
Single or Multiple melodic lines structure
Single or Multiple melodic lines structureSingle or Multiple melodic lines structure
Single or Multiple melodic lines structure
 
Wellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptxWellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptx
 
Food safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfFood safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdf
 
How to Add New Custom Addons Path in Odoo 17
How to Add New Custom Addons Path in Odoo 17How to Add New Custom Addons Path in Odoo 17
How to Add New Custom Addons Path in Odoo 17
 
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
 
Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)
 
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
 
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxHMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.ppt
 
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptxCOMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
 
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdfUGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
 

Introduction to HTML5

  • 1. Introduction to HTML5 By Kunal Johar Brown Bag Presentations
  • 2. Introduction to HTML5 Reference By Kunal Johar • This presentation is based heavily on information taken from Dive into HTML5 • http://diveintohtml5.org/ • Buy the book! http://www.amazon.com/HTML5- Up-Running-Mark- Pilgrim/dp/0596806027?creativeAS IN=0596806027 Brown Bag Presentations
  • 3. Introduction to HTML5 What is HTML5? By Kunal Johar • A series of upgrades to HTML4 • Makes HTML4/CSS/XHTML Cleaner to write • Allows for creation of Rich Internet Applications (RIA) • Allows support for new devices (mobile/tablet) • Allows for concept of semantic web • It IS NOT an all or nothing upgrade • Features of HTML5 have been in use for years • <canvas> for Cufon support • Geolocation Not exactly HTML5  Brown Bag Presentations
  • 4. Introduction to HTML5 Why HTML5? By Kunal Johar • What is HTML4? • Standard markup by W3C • What is a Standard? • Why do we use <img src=“some_url”> instead of <embed type=“image” url=“some_url”> • Why do we now use <img src=“some_url”/> • Okay so why HTML5 not XHTML 3.0? • We can ask Lil Jon Brown Bag Presentations
  • 5. Introduction to HTML5 WHAT!? By Kunal Johar WHAT!? Brown Bag Presentations
  • 6. Introduction to HTML5 WHAT / W3C By Kunal Johar • Web Hypertext Application Technology (WHAT) Working Group • Formed in 2004 • Studied how web browsers render HTML • Then study how they render malformed HTML • Proposal: Make HTML a living standard • HTML5 to be “finalized” in 5+ years from now • WHATWG vs W3C • Live in unison as long as the other doesn’t do something stupid Brown Bag Presentations
  • 7. Introduction to HTML5 How to Use HTML5 By Kunal Johar • Before the <html> element we specify a doctype • Right?  • For HTML5 use <!DOCTYPE html> • What if the current browser is not “HTML5 Compliant” • “HTML5 Compliance” is a buzzword • “Does not support {feature x} of HTML5” would be more appropriate Brown Bag Presentations
  • 8. Introduction to HTML5 HTML5 Feature Detection By Kunal Johar • The hard way • Use javascript to create object of a feature • If {!!object} {degredation code} • Modernizr.js • MIT Licensed library • if (!Modernizr.geolocation){ degredation code } • Modernizr.load ({ test: Modernizer.geolocation, yep: some_library.js, nope: some_library.html4.js}) Brown Bag Presentations
  • 9. Introduction to HTML5 HTML5 Features By Kunal Johar • Canvas • Video Remember to • Local Storage degrade nicely • Web Worker • Offline Support • Semantic Web (Microdata) • Geolocation (not exactly HTML5) • History APIs • Form Improvements Brown Bag Presentations
  • 10. Introduction to HTML5 Canvas By Kunal Johar • <canvas> • Area we can draw in (lines, text*, images) • 2D Surface – 3D may come later • Useful for custom Uis and games • Can detect events within a region – On click / on hover – On touch • Use excanvas.js for clean degradation Brown Bag Presentations
  • 11. Introduction to HTML5 Video By Kunal Johar • <video> • Does to video what <img> does for images • Allows video playback without Flash – File formats could be an issue – Similar to PNG format for images • Modernizr can be used for codec detection Brown Bag Presentations
  • 12. Introduction to HTML5 Data Storage By Kunal Johar • Improvements to cookies • Cookies limited to 4K • Data format as associative array / json • Fallacies • Supports Key/Value pairs only • No standard format for more advanced databases (SQLLite / IndexDB) across all browsers • Google Gears / dojox.storage.js for degradation support Brown Bag Presentations
  • 13. Introduction to HTML5 Web Workers By Kunal Johar • Background processing of java • Most implementations run worker in new thread • Workers do not have access to DOM • Great for asynchronous tasks • Thoughts on some good uses? • Degradation with jquery timer Brown Bag Presentations
  • 14. Introduction to HTML5 Offline Support, Semantic Web By Kunal Johar • Offline Support • Support for cache.manifest • Asks browser to download files for offline use • Combine with local storage / non-standardized database • Semantic web • Instead of <h1> <hgroup> • Instead of <li> <nav> • Instead of <div> <article> <section> • Great for search engines and the future! • <img> <audio> <video> Brown Bag Presentations
  • 15. Introduction to HTML5 History APIs By Kunal Johar • Back / Forward • Works great with static pages • Painful with dynamic UIs (multiple tab views) • HTML5 creates api to push state / pop state – History.pushState(json string) • Degradation • Use of window.hash (#somevalue) • Jquery history.js Brown Bag Presentations
  • 16. Introduction to HTML5 Geolocation By Kunal Johar • You said it isn’t HTML5 • W3C Geolocation WG • Included in HTML5 discussion through marketing of new web browsers • Location service (wifi db, cell tower, gps) gives raw data • Data: Latitude, Longitude, Heading, Accuracy • Can “request” high or low accuracy – Device specific of course • How would you handle degradation? Brown Bag Presentations
  • 17. Introduction to HTML5 Form Improvements By Kunal Johar • Helper Functions • Placeholder text • Autofocus • Validation • New Fields Brown Bag Presentations
  • 18. Introduction to HTML5 Form Improvements: Helper Functions By Kunal Johar • Placeholder text • <input name =“s” placeholder=“Email”> • Autofocus • <input name =“s” autofocus> • Better control of focus when page loads or when pressing tab • Degrade • Jquery or javascript du jour Brown Bag Presentations
  • 19. Introduction to HTML5 Form Improvements: Validation By Kunal Johar • Examples • Email validation: <input name =“s” type=“email”> • Required field: <input name =“s” required> • Others: type=“url”, “number” with min= and max= • Stopping Validation • Validation is on by default for a form with the type specification • <form novalidate> will prevent this • Degrade • Jquery or javascript du jour Brown Bag Presentations
  • 20. Introduction to HTML5 Form Improvements: New Types By Kunal Johar • Supports better “selector” views and keyboard prompts • Types • Email, Url • Number (min, max, step, value) • Range (min, max, step, value) • Date, month, week, time, etc (opera only) • Color (opera only) • Search • WHATWG found that all browsers degrade to regular text boxes Brown Bag Presentations
  • 21. Thank You kjohar@vofficeware.com 1629 K St NW, STE 300, Washington, DC 20006 Phone (202) 478-9620 Fax (888) 647-6110 web: www.vofficeware.com