SlideShare ist ein Scribd-Unternehmen logo
1 von 66
Downloaden Sie, um offline zu lesen
HTML5 Fantastic Forms For Mobile Web
                            @tammybutow




Wednesday, 23 May 12
Fantastic Forms For Mobile Web
        01 Why you should know about HTML5 Forms

        02 Live Demo

        03 Syntax Review

        04 Code Challenge




       Fantastic Forms                             @tammybutow
Wednesday, 23 May 12
Fantastic Forms For Mobile Web
        01 Why you should know about HTML5 Forms

        02 Live Demo

        03 Syntax Review

        04 Code Challenge




       Fantastic Forms                             @tammybutow
Wednesday, 23 May 12
http://www.flickr.com/photos/58847482@N03/5597332989/
Wednesday, 23 May 12
@zcorpan
                                                   Simon Pieters




                                                     @annevk
                                                  Anne Van Kesteren




       Fantastic Forms                      @tammybutow
http://dev.w3.org/html5/html4-differences/
Wednesday, 23 May 12
Image of the people


                                              Mark Pilgrim




       Fantastic Forms                 @tammybutow
http://diveintohtml5.info/forms.html
Wednesday, 23 May 12
@miketaylr
                        miketaylr.com




http://miketaylr.com/
Wednesday, 23 May 12
@miketaylr
                                                 miketaylr.com




http://miketaylr.com/code/input-type-attr.html
Wednesday, 23 May 12
Fantastic Forms   @tammybutow
http://modernizr.com/
Wednesday, 23 May 12
@ryanseddon
                                        thecssninja.com




    https://github.com/ryanseddon/H5F
Wednesday, 23 May 12
Why use HTML5 form features?
          ‣ Future Proof
                • Great for mobile and tablet devices
                • Form features degrade gracefully in every browser
                • You can use Modernizr to create JavaScript fallbacks

          ‣ Customer Friendly
                • Great for people on-the-go
                • Makes it easier for people to know what data you need
                • Good for slow connections on mobile


       Fantastic Forms                                            @tammybutow
Wednesday, 23 May 12
Fantastic Forms For Mobile Web
        01 Why you should know about HTML5 Forms

        02 Live Demo

        03 Syntax Review

        04 Code Challenge




       Fantastic Forms                             @tammybutow
Wednesday, 23 May 12
Fantastic Forms For Mobile Web
        01 Why you should know about HTML5 Forms

        02 Live Demo

        03 Syntax Review

        04 Code Challenge




       Fantastic Forms                             @tammybutow
Wednesday, 23 May 12
Fantastic Forms For Mobile Web
        01 Why you should know about HTML5 Forms

        02 Live Demo

        03 Syntax Review

        04 Code Challenge




       Fantastic Forms                             @tammybutow
Wednesday, 23 May 12
Making Stuff Is Fun
       A mobile web form to collect stuff




       Fantastic Forms                     @tammybutow
Wednesday, 23 May 12
Fantastic Forms For Mobile Web
        01 Why you should know about HTML5 Forms

        02 Live Demo

        03 Syntax Review

        04 Code Challenge




       Fantastic Forms                             @tammybutow
Wednesday, 23 May 12
Fantastic Forms For Mobile Web
        01 Why you should know about HTML5 Forms

        02 Live Demo

        03 Syntax Review

        04 Code Challenge




       Fantastic Forms                             @tammybutow
Wednesday, 23 May 12
Fantastic Forms For Mobile Web
        01 Why you should know about HTML5 Forms

        02 Live Demo
        03 Syntax Review

        04 Code Challenge




       Fantastic Forms                             @tammybutow
Wednesday, 23 May 12
Fantastic Forms For Mobile Web
        01 Why you should know about HTML5 Forms

        02 Live Demo
        03 Syntax Review

        04 Code Challenge




       Fantastic Forms                             @tammybutow
Wednesday, 23 May 12
Fantastic Forms for Mobile Web
                                         Required Fields
                                           Date Picker
                                        Placeholder Text

                       HTML5            Number Spinbox
                       Forms             Number Slider
                                        Custom Keyboards
                                           Autofocus
                                           Validation

       Fantastic Forms              @tammybutow
Wednesday, 23 May 12
Required Fields
       ‣ index.html




       Fantastic Forms   @tammybutow
Wednesday, 23 May 12
Required Fields
       ‣ index.html




       Fantastic Forms   @tammybutow
Wednesday, 23 May 12
Required Fields
       ‣ index.html

            <form>
            <label>Launch date:</label>
            <input type="date" id="launch_date" name="launch_date" required>
            </form>




       Fantastic Forms                                    @tammybutow
Wednesday, 23 May 12
Required Fields
       ‣ index.html

            <form>
            <label>Launch date:</label>
            <input type="date" id="launch_date" name="launch_date" required>
            </form>




       Fantastic Forms                                    @tammybutow
Wednesday, 23 May 12
Fantastic Forms for Mobile Web
                                         Required Fields
                                           Date Picker
                                        Placeholder Text

                       HTML5            Number Spinbox
                       Forms             Number Slider
                                        Custom Keyboards
                                           Autofocus
                                           Validation

       Fantastic Forms              @tammybutow
Wednesday, 23 May 12
Date Picker
       ‣ index.html




       Fantastic Forms   @tammybutow
Wednesday, 23 May 12
Date Picker
       ‣ index.html

            <form>
            <label>Launch date:</label>
            <input type="date" id="launch_date" name="launch_date" required>
            </form>




       Fantastic Forms                                    @tammybutow
Wednesday, 23 May 12
Date Picker
       ‣ index.html

            <form>
            <label>Launch date:</label>
            <input type="date" id="launch_date" name="launch_date" required>
            </form>




       Fantastic Forms                                    @tammybutow
Wednesday, 23 May 12
Date Picker
       ‣ index.html




       Fantastic Forms                                   @tammybutow
                         FC-compliant email validation
Wednesday, 23 May 12
Fantastic Forms for Mobile Web
                                         Required Fields
                                           Date Picker
                                        Placeholder Text

                       HTML5            Number Spinbox
                       Forms             Number Slider
                                        Custom Keyboards
                                           Autofocus
                                           Validation

       Fantastic Forms              @tammybutow
Wednesday, 23 May 12
Placeholder Text
       ‣ index.html




       Fantastic Forms    @tammybutow
Wednesday, 23 May 12
Placeholder Text
       ‣ index.html




       Fantastic Forms    @tammybutow
Wednesday, 23 May 12
Placeholder Text
       ‣ index.html

            <form>
            <label>Full name:</label>
            <input type="text" id="full_name" name="full_name"
            placeholder="Jane Doe" required>
            </form>




       Fantastic Forms                                    @tammybutow
Wednesday, 23 May 12
Placeholder Text
       ‣ index.html

            <form>
            <label>Full name:</label>
            <input type="text" id="full_name" name="full_name"
            placeholder="Jane Doe" required>
            </form>




       Fantastic Forms                                    @tammybutow
Wednesday, 23 May 12
Fantastic Forms for Mobile Web
                                         Required Fields
                                           Date Picker
                                        Placeholder Text

                       HTML5                Number
                       Forms             Number Slider
                                        Custom Keyboards
                                           Autofocus
                                           Validation

       Fantastic Forms              @tammybutow
Wednesday, 23 May 12
Number
       ‣ index.html




       Fantastic Forms   @tammybutow
Wednesday, 23 May 12
Number
       ‣ index.html




       Fantastic Forms   @tammybutow
Wednesday, 23 May 12
Number
       ‣ index.html


           <form>

           <label>How many team members:</label>
           <input type="number" id=“project_range” name=“project_range”
           min="1" max="10" step="1" value="1">

           </form>




       Fantastic Forms                                    @tammybutow
Wednesday, 23 May 12
Number
       ‣ index.html


           <form>

           <label>How many team members:</label>
           <input type="number" id=“project_range” name=“project_range”
           min="1" max="10" step="1" value="1">

           </form>




       Fantastic Forms                                    @tammybutow
Wednesday, 23 May 12
Fantastic Forms for Mobile Web
                                         Required Fields
                                           Date Picker
                                        Placeholder Text

                       HTML5            Number Spinbox
                       Forms             Number Slider
                                        Custom Keyboards
                                           Autofocus
                                           Validation

       Fantastic Forms              @tammybutow
Wednesday, 23 May 12
Number Slider
       ‣ index.html




       Fantastic Forms   @tammybutow
Wednesday, 23 May 12
Number Slider
       ‣ index.html




       Fantastic Forms   @tammybutow
Wednesday, 23 May 12
Number Slider
       ‣ index.html


           <form>

           <label>How complete is your project:</label>
           <input type="range" id=“project_range” name=“project_range”
           min=“1” max=“100” step=“10” value=“10” >

           </form>




       Fantastic Forms                                    @tammybutow
Wednesday, 23 May 12
Number Slider
       ‣ index.html


           <form>

           <label>How complete is your project:</label>
           <input type="range" id=“project_range” name=“project_range”
           min=“1” max=“100” step=“10” value=“10” >

           </form>




       Fantastic Forms                                    @tammybutow
Wednesday, 23 May 12
Fantastic Forms for Mobile Web
                                         Required Fields
                                           Date Picker
                                        Placeholder Text

                       HTML5            Number Spinbox
                       Forms             Number Slider
                                        Custom Keyboards
                                           Autofocus
                                           Validation

       Fantastic Forms              @tammybutow
Wednesday, 23 May 12
Standard        Number   Tel         URL
       ‣ index.html




       Fantastic Forms                  @tammybutow
Wednesday, 23 May 12
Custom Keyboards
       ‣ index.html




       Fantastic Forms    @tammybutow
Wednesday, 23 May 12
Custom Keyboards
       ‣ index.html


           <form>

           <label>URL:</label>
           <input type="url" id=“url” name=“url” placeholder = “http://
           yourproject.com” required>

           </form>




       Fantastic Forms                                    @tammybutow
Wednesday, 23 May 12
Custom Keyboards
       ‣ index.html


           <form>

           <label>URL:</label>
           <input type="url" id=“url” name=“url” placeholder = “http://
           yourproject.com” required>

           </form>




       Fantastic Forms                                    @tammybutow
Wednesday, 23 May 12
Fantastic Forms for Mobile Web
                                         Required Fields
                                           Date Picker
                                        Placeholder Text

                       HTML5            Number Spinbox
                       Forms             Number Slider
                                        Custom Keyboards
                                           Autofocus
                                           Validation

       Fantastic Forms              @tammybutow
Wednesday, 23 May 12
Autofocus
       ‣ index.html




       Fantastic Forms   @tammybutow
Wednesday, 23 May 12
Autofocus
       ‣ index.html




       Fantastic Forms   @tammybutow
Wednesday, 23 May 12
Autofocus
       ‣ index.html


           <form>

           <label>Full name:</label>
           <input type=“text” id= “full_name” name= “full_name” placeholder=
           “Jane Doe” required autofocus>

           </form>




       Fantastic Forms                                    @tammybutow
Wednesday, 23 May 12
Autofocus
       ‣ index.html


           <form>

           <label>Full name:</label>
           <input type=“text” id= “full_name” name= “full_name” placeholder=
           “Jane Doe” required autofocus>

           </form>




       Fantastic Forms                                    @tammybutow
Wednesday, 23 May 12
Fantastic Forms for Mobile Web
                                         Required Fields
                                           Date Picker
                                        Placeholder Text

                       HTML5            Number Spinbox
                       Forms             Number Slider
                                        Custom Keyboards
                                           Autofocus
                                           Validation

       Fantastic Forms              @tammybutow
Wednesday, 23 May 12
Validation
       ‣ index.html




    The browser automatically
      offers RFC-compliant
     email validation, even if
       scripting is disabled.

       Fantastic Forms           @tammybutow
Wednesday, 23 May 12
Validation
       ‣ index.html




       Fantastic Forms   @tammybutow
Wednesday, 23 May 12
Validation
       ‣ index.html


           <form>

           <label>Email address:</label>
           <input type="email" id=“email_addr” name=“email_addr” placeholder
           = “janedoe@mail.com” required>

           </form>




       Fantastic Forms                                    @tammybutow
Wednesday, 23 May 12
Validation
       ‣ index.html


           <form>

           <label>Email address:</label>
           <input type="email" id=“email_addr” name=“email_addr” placeholder
           = “janedoe@mail.com” required>

           </form>




       Fantastic Forms                                    @tammybutow
Wednesday, 23 May 12
Fantastic Forms For Mobile Web
        01 Why you should know about HTML5 Forms

        02 Live Demo
        03 Syntax Review
        04 Code Challenge




       Fantastic Forms                             @tammybutow
Wednesday, 23 May 12
Fantastic Forms For Mobile Web
        01 Why you should know about HTML5 Forms

        02 Live Demo
        03 Syntax Review
        04 Code Challenge




       Fantastic Forms                             @tammybutow
Wednesday, 23 May 12
Fantastic Forms For Mobile Web
        01 Why you should know about HTML5 Forms

        02 Live Demo
        03 Syntax Review
        04 Code Challenge




       Fantastic Forms                             @tammybutow
Wednesday, 23 May 12
Fantastic Forms For Mobile Web
        01 Why you should know about HTML5 Forms

        02 Live Demo
        03 Syntax Review
        04 Code Challenge




       Fantastic Forms                             @tammybutow
Wednesday, 23 May 12
Fantastic Forms For Mobile Web
        01 Why you should know about HTML5 Forms

        02 Live Demo
        03 Syntax Review
        04 Code Challenge




       Fantastic Forms                             @tammybutow
Wednesday, 23 May 12
Code Challenge
          ‣ Create a mobile web page
                • You could try out the initializr reponsive web template (On GITHUB)

          ‣ Add a HTML5 Form
                • Try out different input types and attributes

          ‣ Share it
                • Tweet the link/screenshot and add the #WDC12 hashtag

          ‣ Have fun ☺


       Fantastic Forms                                             @tammybutow
Wednesday, 23 May 12
HTML5 Fantastic Forms For Mobile Web
                            @tammybutow




Wednesday, 23 May 12

Weitere ähnliche Inhalte

Kürzlich hochgeladen

Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Victor Rentea
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Safe Software
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
WSO2
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Safe Software
 

Kürzlich hochgeladen (20)

Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWEREMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 AmsterdamDEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
 
Vector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptxVector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptx
 
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : Uncertainty
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
 
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
 
CNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In PakistanCNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In Pakistan
 
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
 
FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024
 
Corporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxCorporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptx
 
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
 
Six Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal OntologySix Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal Ontology
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 

Empfohlen

Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
Kurio // The Social Media Age(ncy)
 

Empfohlen (20)

AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
 
Skeleton Culture Code
Skeleton Culture CodeSkeleton Culture Code
Skeleton Culture Code
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
 
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
 
12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work
 
ChatGPT webinar slides
ChatGPT webinar slidesChatGPT webinar slides
ChatGPT webinar slides
 
More than Just Lines on a Map: Best Practices for U.S Bike Routes
More than Just Lines on a Map: Best Practices for U.S Bike RoutesMore than Just Lines on a Map: Best Practices for U.S Bike Routes
More than Just Lines on a Map: Best Practices for U.S Bike Routes
 

HTML5 Fantastic Forms for Mobile Web

  • 1. HTML5 Fantastic Forms For Mobile Web @tammybutow Wednesday, 23 May 12
  • 2. Fantastic Forms For Mobile Web 01 Why you should know about HTML5 Forms 02 Live Demo 03 Syntax Review 04 Code Challenge Fantastic Forms @tammybutow Wednesday, 23 May 12
  • 3. Fantastic Forms For Mobile Web 01 Why you should know about HTML5 Forms 02 Live Demo 03 Syntax Review 04 Code Challenge Fantastic Forms @tammybutow Wednesday, 23 May 12
  • 5. @zcorpan Simon Pieters @annevk Anne Van Kesteren Fantastic Forms @tammybutow http://dev.w3.org/html5/html4-differences/ Wednesday, 23 May 12
  • 6. Image of the people Mark Pilgrim Fantastic Forms @tammybutow http://diveintohtml5.info/forms.html Wednesday, 23 May 12
  • 7. @miketaylr miketaylr.com http://miketaylr.com/ Wednesday, 23 May 12
  • 8. @miketaylr miketaylr.com http://miketaylr.com/code/input-type-attr.html Wednesday, 23 May 12
  • 9. Fantastic Forms @tammybutow http://modernizr.com/ Wednesday, 23 May 12
  • 10. @ryanseddon thecssninja.com https://github.com/ryanseddon/H5F Wednesday, 23 May 12
  • 11. Why use HTML5 form features? ‣ Future Proof • Great for mobile and tablet devices • Form features degrade gracefully in every browser • You can use Modernizr to create JavaScript fallbacks ‣ Customer Friendly • Great for people on-the-go • Makes it easier for people to know what data you need • Good for slow connections on mobile Fantastic Forms @tammybutow Wednesday, 23 May 12
  • 12. Fantastic Forms For Mobile Web 01 Why you should know about HTML5 Forms 02 Live Demo 03 Syntax Review 04 Code Challenge Fantastic Forms @tammybutow Wednesday, 23 May 12
  • 13. Fantastic Forms For Mobile Web 01 Why you should know about HTML5 Forms 02 Live Demo 03 Syntax Review 04 Code Challenge Fantastic Forms @tammybutow Wednesday, 23 May 12
  • 14. Fantastic Forms For Mobile Web 01 Why you should know about HTML5 Forms 02 Live Demo 03 Syntax Review 04 Code Challenge Fantastic Forms @tammybutow Wednesday, 23 May 12
  • 15. Making Stuff Is Fun A mobile web form to collect stuff Fantastic Forms @tammybutow Wednesday, 23 May 12
  • 16. Fantastic Forms For Mobile Web 01 Why you should know about HTML5 Forms 02 Live Demo 03 Syntax Review 04 Code Challenge Fantastic Forms @tammybutow Wednesday, 23 May 12
  • 17. Fantastic Forms For Mobile Web 01 Why you should know about HTML5 Forms 02 Live Demo 03 Syntax Review 04 Code Challenge Fantastic Forms @tammybutow Wednesday, 23 May 12
  • 18. Fantastic Forms For Mobile Web 01 Why you should know about HTML5 Forms 02 Live Demo 03 Syntax Review 04 Code Challenge Fantastic Forms @tammybutow Wednesday, 23 May 12
  • 19. Fantastic Forms For Mobile Web 01 Why you should know about HTML5 Forms 02 Live Demo 03 Syntax Review 04 Code Challenge Fantastic Forms @tammybutow Wednesday, 23 May 12
  • 20. Fantastic Forms for Mobile Web Required Fields Date Picker Placeholder Text HTML5 Number Spinbox Forms Number Slider Custom Keyboards Autofocus Validation Fantastic Forms @tammybutow Wednesday, 23 May 12
  • 21. Required Fields ‣ index.html Fantastic Forms @tammybutow Wednesday, 23 May 12
  • 22. Required Fields ‣ index.html Fantastic Forms @tammybutow Wednesday, 23 May 12
  • 23. Required Fields ‣ index.html <form> <label>Launch date:</label> <input type="date" id="launch_date" name="launch_date" required> </form> Fantastic Forms @tammybutow Wednesday, 23 May 12
  • 24. Required Fields ‣ index.html <form> <label>Launch date:</label> <input type="date" id="launch_date" name="launch_date" required> </form> Fantastic Forms @tammybutow Wednesday, 23 May 12
  • 25. Fantastic Forms for Mobile Web Required Fields Date Picker Placeholder Text HTML5 Number Spinbox Forms Number Slider Custom Keyboards Autofocus Validation Fantastic Forms @tammybutow Wednesday, 23 May 12
  • 26. Date Picker ‣ index.html Fantastic Forms @tammybutow Wednesday, 23 May 12
  • 27. Date Picker ‣ index.html <form> <label>Launch date:</label> <input type="date" id="launch_date" name="launch_date" required> </form> Fantastic Forms @tammybutow Wednesday, 23 May 12
  • 28. Date Picker ‣ index.html <form> <label>Launch date:</label> <input type="date" id="launch_date" name="launch_date" required> </form> Fantastic Forms @tammybutow Wednesday, 23 May 12
  • 29. Date Picker ‣ index.html Fantastic Forms @tammybutow FC-compliant email validation Wednesday, 23 May 12
  • 30. Fantastic Forms for Mobile Web Required Fields Date Picker Placeholder Text HTML5 Number Spinbox Forms Number Slider Custom Keyboards Autofocus Validation Fantastic Forms @tammybutow Wednesday, 23 May 12
  • 31. Placeholder Text ‣ index.html Fantastic Forms @tammybutow Wednesday, 23 May 12
  • 32. Placeholder Text ‣ index.html Fantastic Forms @tammybutow Wednesday, 23 May 12
  • 33. Placeholder Text ‣ index.html <form> <label>Full name:</label> <input type="text" id="full_name" name="full_name" placeholder="Jane Doe" required> </form> Fantastic Forms @tammybutow Wednesday, 23 May 12
  • 34. Placeholder Text ‣ index.html <form> <label>Full name:</label> <input type="text" id="full_name" name="full_name" placeholder="Jane Doe" required> </form> Fantastic Forms @tammybutow Wednesday, 23 May 12
  • 35. Fantastic Forms for Mobile Web Required Fields Date Picker Placeholder Text HTML5 Number Forms Number Slider Custom Keyboards Autofocus Validation Fantastic Forms @tammybutow Wednesday, 23 May 12
  • 36. Number ‣ index.html Fantastic Forms @tammybutow Wednesday, 23 May 12
  • 37. Number ‣ index.html Fantastic Forms @tammybutow Wednesday, 23 May 12
  • 38. Number ‣ index.html <form> <label>How many team members:</label> <input type="number" id=“project_range” name=“project_range” min="1" max="10" step="1" value="1"> </form> Fantastic Forms @tammybutow Wednesday, 23 May 12
  • 39. Number ‣ index.html <form> <label>How many team members:</label> <input type="number" id=“project_range” name=“project_range” min="1" max="10" step="1" value="1"> </form> Fantastic Forms @tammybutow Wednesday, 23 May 12
  • 40. Fantastic Forms for Mobile Web Required Fields Date Picker Placeholder Text HTML5 Number Spinbox Forms Number Slider Custom Keyboards Autofocus Validation Fantastic Forms @tammybutow Wednesday, 23 May 12
  • 41. Number Slider ‣ index.html Fantastic Forms @tammybutow Wednesday, 23 May 12
  • 42. Number Slider ‣ index.html Fantastic Forms @tammybutow Wednesday, 23 May 12
  • 43. Number Slider ‣ index.html <form> <label>How complete is your project:</label> <input type="range" id=“project_range” name=“project_range” min=“1” max=“100” step=“10” value=“10” > </form> Fantastic Forms @tammybutow Wednesday, 23 May 12
  • 44. Number Slider ‣ index.html <form> <label>How complete is your project:</label> <input type="range" id=“project_range” name=“project_range” min=“1” max=“100” step=“10” value=“10” > </form> Fantastic Forms @tammybutow Wednesday, 23 May 12
  • 45. Fantastic Forms for Mobile Web Required Fields Date Picker Placeholder Text HTML5 Number Spinbox Forms Number Slider Custom Keyboards Autofocus Validation Fantastic Forms @tammybutow Wednesday, 23 May 12
  • 46. Standard Number Tel URL ‣ index.html Fantastic Forms @tammybutow Wednesday, 23 May 12
  • 47. Custom Keyboards ‣ index.html Fantastic Forms @tammybutow Wednesday, 23 May 12
  • 48. Custom Keyboards ‣ index.html <form> <label>URL:</label> <input type="url" id=“url” name=“url” placeholder = “http:// yourproject.com” required> </form> Fantastic Forms @tammybutow Wednesday, 23 May 12
  • 49. Custom Keyboards ‣ index.html <form> <label>URL:</label> <input type="url" id=“url” name=“url” placeholder = “http:// yourproject.com” required> </form> Fantastic Forms @tammybutow Wednesday, 23 May 12
  • 50. Fantastic Forms for Mobile Web Required Fields Date Picker Placeholder Text HTML5 Number Spinbox Forms Number Slider Custom Keyboards Autofocus Validation Fantastic Forms @tammybutow Wednesday, 23 May 12
  • 51. Autofocus ‣ index.html Fantastic Forms @tammybutow Wednesday, 23 May 12
  • 52. Autofocus ‣ index.html Fantastic Forms @tammybutow Wednesday, 23 May 12
  • 53. Autofocus ‣ index.html <form> <label>Full name:</label> <input type=“text” id= “full_name” name= “full_name” placeholder= “Jane Doe” required autofocus> </form> Fantastic Forms @tammybutow Wednesday, 23 May 12
  • 54. Autofocus ‣ index.html <form> <label>Full name:</label> <input type=“text” id= “full_name” name= “full_name” placeholder= “Jane Doe” required autofocus> </form> Fantastic Forms @tammybutow Wednesday, 23 May 12
  • 55. Fantastic Forms for Mobile Web Required Fields Date Picker Placeholder Text HTML5 Number Spinbox Forms Number Slider Custom Keyboards Autofocus Validation Fantastic Forms @tammybutow Wednesday, 23 May 12
  • 56. Validation ‣ index.html The browser automatically offers RFC-compliant email validation, even if scripting is disabled. Fantastic Forms @tammybutow Wednesday, 23 May 12
  • 57. Validation ‣ index.html Fantastic Forms @tammybutow Wednesday, 23 May 12
  • 58. Validation ‣ index.html <form> <label>Email address:</label> <input type="email" id=“email_addr” name=“email_addr” placeholder = “janedoe@mail.com” required> </form> Fantastic Forms @tammybutow Wednesday, 23 May 12
  • 59. Validation ‣ index.html <form> <label>Email address:</label> <input type="email" id=“email_addr” name=“email_addr” placeholder = “janedoe@mail.com” required> </form> Fantastic Forms @tammybutow Wednesday, 23 May 12
  • 60. Fantastic Forms For Mobile Web 01 Why you should know about HTML5 Forms 02 Live Demo 03 Syntax Review 04 Code Challenge Fantastic Forms @tammybutow Wednesday, 23 May 12
  • 61. Fantastic Forms For Mobile Web 01 Why you should know about HTML5 Forms 02 Live Demo 03 Syntax Review 04 Code Challenge Fantastic Forms @tammybutow Wednesday, 23 May 12
  • 62. Fantastic Forms For Mobile Web 01 Why you should know about HTML5 Forms 02 Live Demo 03 Syntax Review 04 Code Challenge Fantastic Forms @tammybutow Wednesday, 23 May 12
  • 63. Fantastic Forms For Mobile Web 01 Why you should know about HTML5 Forms 02 Live Demo 03 Syntax Review 04 Code Challenge Fantastic Forms @tammybutow Wednesday, 23 May 12
  • 64. Fantastic Forms For Mobile Web 01 Why you should know about HTML5 Forms 02 Live Demo 03 Syntax Review 04 Code Challenge Fantastic Forms @tammybutow Wednesday, 23 May 12
  • 65. Code Challenge ‣ Create a mobile web page • You could try out the initializr reponsive web template (On GITHUB) ‣ Add a HTML5 Form • Try out different input types and attributes ‣ Share it • Tweet the link/screenshot and add the #WDC12 hashtag ‣ Have fun ☺ Fantastic Forms @tammybutow Wednesday, 23 May 12
  • 66. HTML5 Fantastic Forms For Mobile Web @tammybutow Wednesday, 23 May 12