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
Rockin' HTML5 With Drupal
Rockin' HTML5 With Drupal
AB
WEB 1.0
Find something
Read
Look at images
Click links to find more things
Rockin' HTML5 With Drupal
WEB 2.0
Comment
Sign in
Add text, photos, video, audio
Connect to other users
Buy things
Participate, not just read
Rockin' HTML5 With Drupal
1996   1999           2001




2005
               today
WEB 3.0


  ?
Rockin' HTML5 With Drupal
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">
Rockin' HTML5 With Drupal
Rockin' HTML5 With Drupal
Rockin' HTML5 With Drupal
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"/>
Rockin' HTML5 With Drupal
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
Rockin' HTML5 With Drupal
*The HTML5 Enabling Script aka HTML5 Shiv
       fixes the lack of support in IE

            ejohn.org/blog/html5-shiv
Rockin' HTML5 With Drupal
quirksmode.org/html5/inputs.html
quirksmode.org/html5/inputs_mobile.html
Rockin' HTML5 With Drupal
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
Rockin' HTML5 With Drupal
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!

More Related Content

PDF
Let's HTML5ify drupal
PDF
Turning That UX Frown Upside Down
KEY
Introduction to HTML5/CSS3 In Drupal 7
PDF
Drupal + HTML5 + CSS3 + JS = Rich Internet Application
PDF
Jensimmons html5live-responsivedesign
PDF
HTML5 Drupal Working Group
PDF
SW Drupal Summit: HTML5+Drupal
PDF
Theming the-enterprise-nyse-jensimmons
Let's HTML5ify drupal
Turning That UX Frown Upside Down
Introduction to HTML5/CSS3 In Drupal 7
Drupal + HTML5 + CSS3 + JS = Rich Internet Application
Jensimmons html5live-responsivedesign
HTML5 Drupal Working Group
SW Drupal Summit: HTML5+Drupal
Theming the-enterprise-nyse-jensimmons
Ad

Rockin' HTML5 With Drupal