SlideShare une entreprise Scribd logo
1  sur  81
Télécharger pour lire hors ligne
ROCKIN' HTML5
       with

   DRUPAL
   JEN SIMMONS
JEN SIMMONS
 Creator of Bartik, the default theme in Drupal 7
 Designer, front end developer & drupal architect
Drupaling since 2007, building websites since 1996
           Senior Developer at Palantir




           jensimmons.com
          twitter: jensimmons
SLIDES AT:


jen.cm/h5
EVOLUTION
OF SUCCESSFUL TECHNOLOGY
AB
WEB 1.0
Find something
Read
Look at images
Click links to find more things
WEB 2.0
Comment
Sign in
Add text, photos, video, audio
Connect to other users
Buy things
Participate, not just read
1996   1999           2001




2005
               today
WEB 3.0


  ?
HTML5
SEMANTIC
 MARKUP
Simplified Document Head

<!DOCTYPE html>
<meta charset="utf-8" />
<script src="file.js"></script>
<link rel="stylesheet" href="file.css" />
Drupal Document Head

       $head
       $styles
      $scripts
New Structural Elements
 <section>   <aside>
 <article>   <nav>

             + outlining
New Elements
<header>       <mark>
<footer>       <time>
<fig>           <meter>
<figcaption>    <progress>
ARIA: Landmark Roles

<header role="banner">
<div role="main">
<nav role="navigation">
html5doctor.com
node.tpl.php
<article id="node-title" class="node clearfix" >
   <header>
     <h1 class="title"><a href="xxx">My First Node</a></h2
   </header>
   <footer>
       Published on <time datetime=2011-01-22 pubdate>Jan 22</time>
   </footer>
   <p>Blah blah blah</p>
   <p>Blah blah blah</p>
   <footer>
     <div class="taxonomy"><ul><li><a>HTML5</a></li></ul></div>
   </footer>
</article>
Drupal HTML
       $submitted
      menu system
filtered HTML input format
    security cleaning
HTML5
FORMS
FORMS


<label for="favorite-cms">Your Favorite
CMS</label>

<input id="favorite-cms" name="favorite-cms"
type="text" placeholder="Drupal. What else?" />
            />
HTML5 Forms
<input type="text">    <input type="range">

<input type="email">   <input type="color">

<input type="url">     <input type="text">

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

<input type="time">    <input type="week">
*http://diveintohtml5.org/forms.html
HTML5 Forms
search box
date picker
range with a slider
color picker
host.sonspring.com/formalize/jquery_demo.html
          http://sonspring.com/journal/formalize-css
HTML5 Form
         Attributes
autocomplete, min, max, multiple, pattern,
step, required, placeholder

<input type="email" required>

<input type="range" min=1 max=11 name=tap>
<label for="email">Email address</label>
<input id="email" name="email" type="email" />

<label for="website">Website </label>
<input id="website" name="website" type="url" />

<label for="phone">Phone number</label>
<input id="phone" name="phone" type="tel" />

<label for="number">How many?</label>
<input id="number" name="number" type="number"
min="0" max="11" step="1" value="5"/>
HTML5
 TOOLS
MODULE

 drupal.org/project/html5_tools
TOOLS
   Implement HTML5 Forms

     Simplify the output of:
$scripts, $styles, $submitted, etc.

  Add HTML5 Elements to the
   Filtered HTML input filter
    basically alter core's XHTML before
       it's markup goes to the theme
MORE HTML5
AWESOMENESS
(and some non-HTML5 awesomeness)
VIDEO
AUDIO
GAMES
<video>
 <audio>
<canvas>
WEB STORAGE




 project.mahemo .com/sql.html
WEB STORAGE
  Web SQL
  Index DB
OFFLINE
APPLICATIONS
GEOLOCATION
DRAG & DROP
WEB WORKERS
WEB SOCKETS
html5demos.com/web-socket
COMMUNICATION
      &
  MESSAGING
SO CAN WE USE
 HTML5 TODAY?
NOT IF
you have to support
  three particular
 formerly-popular
     browsers
INTERNET EXPLORER 4
NETSCAPE NAVIGATOR 9
     FIREFOX 2
YES.
Old Browser        New Browser
New Website        Old Website

     Must work both ways.
YOU CAN'T NOT
HAVE YOUR SITE BE
     HTML5
    (psssst… it already is)
WHEN CAN I USE?




    caniuse.com
*The HTML5 Enabling Script aka HTML5 Shiv
       fixes the lack of support in IE

            ejohn.org/blog/html5-shiv
quirksmode.org/html5/inputs.html
quirksmode.org/html5/inputs_mobile.html
HTML5
              DRUPAL
              WORKING
              GROUP
groups.drupal.org/html5
   irc: #drupal-html5
Andrei Matteescu                                                         Mason Wendell
Eric Duran                                                          Alan Burke
                            (amateescu)                                                              (carnarymason)


                Lin Clark               Dave Reid                           Je Burnz                      Tim Plunkett
                                                                            (jburnz)


 Alex Ross                                                                                     Theresa Summa
                            Nathan Smith                    Jen Simmons
 (bleen)                                                                                       (theresaanna)



                                       Jack Aponte                                                              John Zavocki
         Forest Mars                                                      John Albin Wilkins
                                       (jackalope)                                                              (johnvsc)
                                                                          (johnalbin)


  Laura Scott               Jared Ponchot                                                       Adrian Simmons
  (laura s)                                                 Matt Farina
                            (jponch)                                                            (adrinux)
                                                            (mfer)

                                                                                                                Stan Angelo
             Jen Lampton                                                       Paul Irish
                                             Jacine Luisi

                                                                                                Tom Behets
  Divya Manian                                                                                  (betz)
                                  (medden)                   Pontus Nilsson
  (nimbupani)
                                                                                                               Mark Krug
                                                                                                               (devildogmrk)
                António Almeida                   John Roberts Wilson
                                                  (jrwilson)                        Jody Hamilton
                (perusio)                                                                                      … AND MORE!
                                                                                    (Jody Lynn)
LOGO
           TWITTER


STICKERS

           @drupalhtml5
THE GROUP'S GOALS
  Use HTML5 today on Drupal 6 & 7 websites.

  Figure out best practices for Drupal + HTML5
through real world experiences, sharing knowledge
       and building community consensus.

              HTML5ify Drupal 8.
HTML5
 TOOLS
MODULE

 drupal.org/project/html5_tools
TOOLS
   Implement HTML5 Forms

     Simplify the output of:
$scripts, $styles, $submitted, etc.

  Add HTML5 Elements to the
   Filtered HTML input filter
    basically alter core's XHTML before
       it's markup goes to the theme
HTML5
 BASE
THEME

 drupal.org/project/html5_base
HTML5 BASE
        Override core templates
  (node.tpl, page.tpl, block.tpl, comment.tpl,
comment-wrapper.tpl, region.tpl, html.tpl, etc…)

           basically HTML5ify Stark
LEARN
MORE
Jeremy Keith's
                             Keynote
                              AT DRUPALCON
                              COPENHAGEN



drupalradar.com/video-jeremy-keith-keynote-session
HTML5 for Web Designers
    Jeremy Keith
             from A Book Apart
    books.alistapart.com/products/html5-for-web-designers
Introducing
HTML5
Bruce Lawson
and
Remy Sharp
introducinghtml5.com
Pro HTML5
Programming
Peter Lubbers,
Brian Albers,
and Frank Salim

prohtml5.com
THE SPEC ITSELF




  developers.whatwg.org
html5doctor.com
HTML5
             DRUPAL
             GROUP

groups.drupal.org/html5
   irc: #drupal-html5
  twitter: drupalhtml5
CORE CONVERSATION

LET'S HTML5ify
  DRUPAL!
WEDNESDAY • 1:00PM
  MICHIGAN A/B
PLEASE COMMENT
    AND SHARE AT



jen.cm/h5
 jensimmons.com
twitter: jensimmons
What did you think?

Go to:
chicago2011.drupal.org/sessions/rockin-html5-drupal

Click the “Take the Survey” link.
Or use the app on your phone.


Thanks!

Contenu connexe

En vedette

2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by HubspotMarius Sescu
 
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTEverything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTExpeed Software
 
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsProduct Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsPixeldarts
 
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthThinkNow
 
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.pdfmarketingartwork
 
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 2024Neil Kimberley
 
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)contently
 
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 2024Albert Qian
 
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 InsightsKurio // The Social Media Age(ncy)
 
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 2024Search Engine Journal
 
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 summarySpeakerHub
 
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 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 Tessa Mero
 
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 IntentLily Ray
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best PracticesVit Horky
 
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 managementMindGenius
 
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...RachelPearson36
 

En vedette (20)

2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot
 
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTEverything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPT
 
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsProduct Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage Engineerings
 
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
 
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...
 

Rockin' HTML5 With Drupal