SlideShare une entreprise Scribd logo
1  sur  44
Télécharger pour lire hors ligne
Creating an HTML5 Site
                         That Doesn’t Suck
                                   The do’s and don’ts of using HT ML5.


                                                                Kevin Bruce




   1      Creating an HTML5 Site That Doesn’t Suck - Kevin Bruce - PHP|tek 2012 - May 25th 2012
Tuesday, May 29, 12
Who Am I?



                                                              Designer
                                                            Developer


  2       Creating an HTML5 Site That Doesn’t Suck - Kevin Bruce - PHP|tek 2012 - May 25th 2012
Tuesday, May 29, 12
Where I Work




  3       Creating an HTML5 Site That Doesn’t Suck - Kevin Bruce - PHP|tek 2012 - May 25th 2012
Tuesday, May 29, 12
2 Years Old, and it’s Still
                    The “New Shiny”




  4       Creating an HTML5 Site That Doesn’t Suck - Kevin Bruce - PHP|tek 2012 - May 25th 2012
Tuesday, May 29, 12
2 Years Old, and it’s Still
                    The “New Shiny”

                                                 +                                         +



                      It’s not just html, it’s a stack of technologies

  5       Creating an HTML5 Site That Doesn’t Suck - Kevin Bruce - PHP|tek 2012 - May 25th 2012
Tuesday, May 29, 12
New HTML5 Stack Features




          New Web Design Trends - Kevin Bruce - Frederick New Media & Tech Conference - Feb 23, 2012
Tuesday, May 29, 12
New Features

                       your
                                                   Canvas
                    on
               Draw
                      pa ge!
                 web

                                         examples:
                        21 HTML5 Canvas Experiments

                                   Simple Example




  7       Creating an HTML5 Site That Doesn’t Suck - Kevin Bruce - PHP|tek 2012 - May 25th 2012
Tuesday, May 29, 12
Canvas
                                                                      <canvas id=”tree” width=”400” height=”200”>
                                                                         Please stop using IE8 and upgrade, already.
                                                                      </canvas>

                                                                      <script>
                                                                         var paper = document.getElementById(“tree”);
                                                                         var context = paper.getContext(“2d”);

                                                                         //set fill color
                                                                         context.fillStyle = “#0066CC”;
                                                                         //create rectangle
                                                                         context.fillRect(10,10, 100, 100);
                                                                      </script>




  8       Creating an HTML5 Site That Doesn’t Suck - Kevin Bruce - PHP|tek 2012 - May 25th 2012
Tuesday, May 29, 12
New Features
                                            Typography
      FIN AL  LY! No

      more A rial and
           Times!
                                          example:

                                 Apple Demo
                                   Simple Example




  9       Creating an HTML5 Site That Doesn’t Suck - Kevin Bruce - PHP|tek 2012 - May 25th 2012
Tuesday, May 29, 12
New Features

                              y our                    Video
                      Get
                             n o ut!
                      pop cor

                                          example:

                             Exploding Video
                                   Simple Example




 10       Creating an HTML5 Site That Doesn’t Suck - Kevin Bruce - PHP|tek 2012 - May 25th 2012
Tuesday, May 29, 12
Client- “That’s Awesome!”




                                          “I want it all on my site!”

 11       Creating an HTML5 Site That Doesn’t Suck - Kevin Bruce - PHP|tek 2012 - May 25th 2012
Tuesday, May 29, 12
Let’s Do A Little Time Travel




 12       Creating an HTML5 Site That Doesn’t Suck - Kevin Bruce - PHP|tek 2012 - May 25th 2012
Tuesday, May 29, 12
Let’s Do A Little Time Travel
                                                                                   1998


                                                                                                  HTML, Rollovers
                                                                                                  & Banners




                                                  print(“Hello World”);                           php3 released


 13       Creating an HTML5 Site That Doesn’t Suck - Kevin Bruce - PHP|tek 2012 - May 25th 2012
Tuesday, May 29, 12
Let’s Do A Little Time Travel
                                                                                   2000


                                                                                                  Flash Explodes!




                                                    echo “Hello World”;                           php4 released


 14       Creating an HTML5 Site That Doesn’t Suck - Kevin Bruce - PHP|tek 2012 - May 25th 2012
Tuesday, May 29, 12
Let’s Do A Little Time Travel
                                                                          2004-2005


                                                                                                  Social Media,
                                                                                                  Blogs & AJAX




                                        $hello = new HelloWorld;                                  php5 released


 15       Creating an HTML5 Site That Doesn’t Suck - Kevin Bruce - PHP|tek 2012 - May 25th 2012
Tuesday, May 29, 12
Let’s Do A Little Time Travel
                                                                                   2008




                                            Web Apps, JS Frameworks, APIs, Adobe Air

 16       Creating an HTML5 Site That Doesn’t Suck - Kevin Bruce - PHP|tek 2012 - May 25th 2012
Tuesday, May 29, 12
Flash Has a Powerful Enemy
                                                                               2010




                                    HTML5 Championed by Apple

 17       Creating an HTML5 Site That Doesn’t Suck - Kevin Bruce - PHP|tek 2012 - May 25th 2012
Tuesday, May 29, 12
“Learned design from history. Guidelines to follow.”




 18       Creating an HTML5 Site That Doesn’t Suck - Kevin Bruce - PHP|tek 2012 - May 25th 2012
Tuesday, May 29, 12
Guidelines to
          Follow

     Clear Navigation

       Not a Lot of Text




          New Web Design Trends - Kevin Bruce - Frederick New Media & Tech Conference - Feb 23, 2012
Tuesday, May 29, 12
Guidelines to
          Follow

     Clear Navigation

       Not a Lot of Text
                If it’s a text-heavy
               page, leave lots of
               visual “rest areas”




          New Web Design Trends - Kevin Bruce - Frederick New Media & Tech Conference - Feb 23, 2012
Tuesday, May 29, 12
Whitespace != Bad
              Google+
     Whitespace Issues?
                      People have learned to
                                cope with it.




          New Web Design Trends - Kevin Bruce - Frederick New Media & Tech Conference - Feb 23, 2012
Tuesday, May 29, 12
Guidelines to
          Follow

     Clear Navigation

       Not a Lot of Text
                If it’s a text-heavy
               page, leave lots of
               visual “rest areas”


Large(ish) links and
    Form Elements



          New Web Design Trends - Kevin Bruce - Frederick New Media & Tech Conference - Feb 23, 2012
Tuesday, May 29, 12
Keep Your
                Content
                 Simple
             Home Page
         Your message in as few
              words as possible


             A clear call to action!

     More info, for the people
     that want to know more.
           Keep it to below 3
      paragraphs worth total!




          New Web Design Trends - Kevin Bruce - Frederick New Media & Tech Conference - Feb 23, 2012
Tuesday, May 29, 12
Other Good Practices
                        Use HTML5 gee-whiz-features minimally and
                                ONLY when necessary!

                                                                                                  mojoLive only uses
                                                                                                   the Typography
                                                                                                      whiz-bang!
                                                                                            (we also use a lot of jQuery and
                                                                                                      CSS3 tricks)
                                                                                             oh- and the canvas element
                                                                                                   for drawing graphs



 24       Creating an HTML5 Site That Doesn’t Suck - Kevin Bruce - PHP|tek 2012 - May 25th 2012
Tuesday, May 29, 12
Write Code
                                                                                                   Semantically
                                                                                                    using css to
                                                                                                  skin your look
                                                                                                         entirely




 25       Creating an HTML5 Site That Doesn’t Suck - Kevin Bruce - PHP|tek 2012 - May 25th 2012
Tuesday, May 29, 12
<header>
          mojoLive Beta
      </header>
      <ul>
          <li><a href=”/”>Home</a></li>
          <li><a href=”/signup”>Signup</a></li>
      </ul>

      <h1>Beta Access</h1>
      <h2>
            We are glad you are interested in our website!
            We are currently in a restricted alpha/beta period.
      </h2>                                                                                         Write Code
      <p>If you've received your invite then enter that information below:</p>                     Semantically
      <form>                                                                                        using css to
           <input type="text" placeholder="Invited Email Address or Beta Code" />
           <input type="submit" value="Sign Me Up!" />                                            skin your look
      </form>
                                                                                                         entirely
       <img src="/img/jojo.signup.png" alt=”monkey holding a
           letter that says ‘You’re Invited!’” />
      <p>
           If you don't have an invite from us yet, you can request one on the
           <a href="/">homepage</a>
      </p>




 25       Creating an HTML5 Site That Doesn’t Suck - Kevin Bruce - PHP|tek 2012 - May 25th 2012
Tuesday, May 29, 12
“I’m sorry... Why is this important?”




 26       Creating an HTML5 Site That Doesn’t Suck - Kevin Bruce - PHP|tek 2012 - May 25th 2012
Tuesday, May 29, 12
Because
                      People Scan, they don’t read.




 27       Creating an HTML5 Site That Doesn’t Suck - Kevin Bruce - PHP|tek 2012 - May 25th 2012
Tuesday, May 29, 12
Because
                      People Scan, they don’t read.

                      They don’t want to have to think.




 28       Creating an HTML5 Site That Doesn’t Suck - Kevin Bruce - PHP|tek 2012 - May 25th 2012
Tuesday, May 29, 12
Because
                      People Scan, they don’t read.

                      They don’t want to have to think.

                      They want the information now
                      yesterday


 29       Creating an HTML5 Site That Doesn’t Suck - Kevin Bruce - PHP|tek 2012 - May 25th 2012
Tuesday, May 29, 12
and...



 30       Creating an HTML5 Site That Doesn’t Suck - Kevin Bruce - PHP|tek 2012 - May 25th 2012
Tuesday, May 29, 12
Mobile Smart Phones
                      An awesome pocket-sized computer!
                              Apple sold 55 million iPhones last year




                                                     in a (tiny) screen size
                                         They will be viewing your site on this screen

 31       Creating an HTML5 Site That Doesn’t Suck - Kevin Bruce - PHP|tek 2012 - May 25th 2012
Tuesday, May 29, 12
“My Client can’t afford
                       an app and their site
                          looks tiny on a
                            phone...”

 32       Creating an HTML5 Site That Doesn’t Suck - Kevin Bruce - PHP|tek 2012 - May 25th 2012
Tuesday, May 29, 12
A simple tool for every eventuality




 33       Creating an HTML5 Site That Doesn’t Suck - Kevin Bruce - PHP|tek 2012 - May 25th 2012
Tuesday, May 29, 12
Responsive Design




                      flexible grid layouts that respond to the size of your
                                        browser window.

 34       Creating an HTML5 Site That Doesn’t Suck - Kevin Bruce - PHP|tek 2012 - May 25th 2012
Tuesday, May 29, 12
Responsive Design
                      A Fairly Quick and Painless Solution


               1. The heavy-lifting is done is CSS(3)

               2. It can be enhanced with CSS techniques and jQuery

               3. New techniques for loading images depending on viewport size




 35       Creating an HTML5 Site That Doesn’t Suck - Kevin Bruce - PHP|tek 2012 - May 25th 2012
Tuesday, May 29, 12
Responsive Design


                                                                Demo




 36       Creating an HTML5 Site That Doesn’t Suck - Kevin Bruce - PHP|tek 2012 - May 25th 2012
Tuesday, May 29, 12
Responsive Design
      1. Use the @import rule to import style rules from other style sheets:

       <div id=”google_whitespace”
            style=”@import url(style600min.css) screen and (min-width: 600px);”>
       </div>




                                                               s?!
                                                     e S tyle
                                              I nlin
                                                            ....
                                                     Sh ame

                CSS3 allows for Viewport Size Detection
 37       Creating an HTML5 Site That Doesn’t Suck - Kevin Bruce - PHP|tek 2012 - May 25th 2012
Tuesday, May 29, 12
Responsive Design
      2. Put media queries directly in the style sheet.
         This is the most common approach.

           @media screen and (min-width: 400px) and (orientation: portrait)                       {
                         #nav li {
                             float: right;
                         }                                                     Can get c
                 }                                                                        luttered,
         @media screen and (min-width: 800px) {                                 to write &            but easy
                      #nav li {                                                              incorporate
                          float: left;
                                                                                      existing sh         into
          
                  }
                          }
                                                                                                  eets


                CSS3 allows for Viewport Size Detection
 38       Creating an HTML5 Site That Doesn’t Suck - Kevin Bruce - PHP|tek 2012 - May 25th 2012
Tuesday, May 29, 12
Responsive Design
      3. Include a query in a linked style sheet’s media attribute:

      <link rel="stylesheet" 
            type="text/css" 
            media="screen and (max-device-width: 800px)" href="style800.css" />




                                                               solution but a
                                                 The cleanest aintain
                                                       pain to m


                CSS3 allows for Viewport Size Detection
 39       Creating an HTML5 Site That Doesn’t Suck - Kevin Bruce - PHP|tek 2012 - May 25th 2012
Tuesday, May 29, 12
more info
                                                                       Link
                                                                                  ies
         Responsive Web Design
         Katrien De Graeve
         http://bit.ly/msftRespDesign


         Responsive Web Design Techniques, Tools and Design Strategies
         Smashing Editorial
         http://bit.ly/smashResponsDesign


         10 Beautiful examples of responsive Web design
         Design & Dev
         http://tnw.co/10respDesign



 40       Creating an HTML5 Site That Doesn’t Suck - Kevin Bruce - PHP|tek 2012 - May 25th 2012
Tuesday, May 29, 12
The Takeaway...



 41       Creating an HTML5 Site That Doesn’t Suck - Kevin Bruce - PHP|tek 2012 - May 25th 2012
Tuesday, May 29, 12
Keep it Simple
                      Use technologies only when they serve a purpose.

                                                      Think “minimalist”

                 Design to accommodate for all devices where possible.

                                             never flashturbate in public




 42       Creating an HTML5 Site That Doesn’t Suck - Kevin Bruce - PHP|tek 2012 - May 25th 2012
Tuesday, May 29, 12
Thank You
                                                    Personal Site: kevinbruce.com
                                             Professional Site: mojoLive.com
                                                                     Blog: neutralgood.net
                                                               Twitter: @kevinbruce

               on ...
            me
       Rate




 43       Creating an HTML5 Site That Doesn’t Suck - Kevin Bruce - PHP|tek 2012 - May 25th 2012
Tuesday, May 29, 12

Contenu connexe

En vedette

Apresentação adrockers 2016 portugues
Apresentação adrockers 2016 portuguesApresentação adrockers 2016 portugues
Apresentação adrockers 2016 portuguesRogerio Nascimento
 
Mastermindkk Company Profile
Mastermindkk Company ProfileMastermindkk Company Profile
Mastermindkk Company ProfileJordanPerryman
 
Neu lion overview 2.1.13
Neu lion overview 2.1.13Neu lion overview 2.1.13
Neu lion overview 2.1.13gtwillis
 
Mastermindkk Office Case Studies
Mastermindkk Office Case StudiesMastermindkk Office Case Studies
Mastermindkk Office Case StudiesJordanPerryman
 
Mastermindkk Residential Case Studies
Mastermindkk Residential Case StudiesMastermindkk Residential Case Studies
Mastermindkk Residential Case StudiesJordanPerryman
 
Global Ibogaine Therapist Alliance 2012 - Tanea Paterson
Global Ibogaine Therapist Alliance 2012 - Tanea PatersonGlobal Ibogaine Therapist Alliance 2012 - Tanea Paterson
Global Ibogaine Therapist Alliance 2012 - Tanea PatersonIbogaine Te Wai Pounamu
 
IBOGAINE: INFORMATION AND GUIDE LINES FOR INTEGRATED THERAPY
IBOGAINE: INFORMATION AND GUIDE LINES FOR INTEGRATED THERAPYIBOGAINE: INFORMATION AND GUIDE LINES FOR INTEGRATED THERAPY
IBOGAINE: INFORMATION AND GUIDE LINES FOR INTEGRATED THERAPYIbogaine Te Wai Pounamu
 
08 march 2013
08 march 201308 march 2013
08 march 2013sajintvlm
 
Redes modularesela
Redes modulareselaRedes modularesela
Redes modulareselaleriamar
 
Plano de disciplina comunicação e mercado
Plano de disciplina   comunicação e mercadoPlano de disciplina   comunicação e mercado
Plano de disciplina comunicação e mercadoFelipe Pereira
 
Informació Platges Accessibles Salou
Informació Platges Accessibles SalouInformació Platges Accessibles Salou
Informació Platges Accessibles SalouPlatges Accessibles
 
Calendário letivo 2013
Calendário letivo 2013Calendário letivo 2013
Calendário letivo 2013Cicero Luciano
 
Administrativo-Financeiro (01/08 a 10/09)
Administrativo-Financeiro (01/08 a 10/09)Administrativo-Financeiro (01/08 a 10/09)
Administrativo-Financeiro (01/08 a 10/09)Gustavo Valverde
 
Anna_Celda Exercici 1_ Bloc 1
Anna_Celda Exercici 1_ Bloc 1Anna_Celda Exercici 1_ Bloc 1
Anna_Celda Exercici 1_ Bloc 116080256
 
La granja de palaudàries
La granja de palaudàriesLa granja de palaudàries
La granja de palaudàriesescolacanigo
 
[MSD01]Introduction
[MSD01]Introduction[MSD01]Introduction
[MSD01]Introductionjylee_kgit
 
S.E.D.E. en Real Quality San Jose
S.E.D.E. en Real Quality San JoseS.E.D.E. en Real Quality San Jose
S.E.D.E. en Real Quality San JoseMargarita Brenes
 
Votado Como El Mejor Mail Del A O
Votado Como El Mejor Mail Del A OVotado Como El Mejor Mail Del A O
Votado Como El Mejor Mail Del A Oguest75c13b
 

En vedette (20)

Apresentação adrockers 2016 portugues
Apresentação adrockers 2016 portuguesApresentação adrockers 2016 portugues
Apresentação adrockers 2016 portugues
 
Mastermindkk Company Profile
Mastermindkk Company ProfileMastermindkk Company Profile
Mastermindkk Company Profile
 
Neu lion overview 2.1.13
Neu lion overview 2.1.13Neu lion overview 2.1.13
Neu lion overview 2.1.13
 
Mastermindkk Office Case Studies
Mastermindkk Office Case StudiesMastermindkk Office Case Studies
Mastermindkk Office Case Studies
 
Mastermindkk Residential Case Studies
Mastermindkk Residential Case StudiesMastermindkk Residential Case Studies
Mastermindkk Residential Case Studies
 
Global Ibogaine Therapist Alliance 2012 - Tanea Paterson
Global Ibogaine Therapist Alliance 2012 - Tanea PatersonGlobal Ibogaine Therapist Alliance 2012 - Tanea Paterson
Global Ibogaine Therapist Alliance 2012 - Tanea Paterson
 
IBOGAINE: INFORMATION AND GUIDE LINES FOR INTEGRATED THERAPY
IBOGAINE: INFORMATION AND GUIDE LINES FOR INTEGRATED THERAPYIBOGAINE: INFORMATION AND GUIDE LINES FOR INTEGRATED THERAPY
IBOGAINE: INFORMATION AND GUIDE LINES FOR INTEGRATED THERAPY
 
08 march 2013
08 march 201308 march 2013
08 march 2013
 
Redes modularesela
Redes modulareselaRedes modularesela
Redes modularesela
 
Plano de disciplina comunicação e mercado
Plano de disciplina   comunicação e mercadoPlano de disciplina   comunicação e mercado
Plano de disciplina comunicação e mercado
 
Coesão e corencencia
Coesão e corencenciaCoesão e corencencia
Coesão e corencencia
 
Informació Platges Accessibles Salou
Informació Platges Accessibles SalouInformació Platges Accessibles Salou
Informació Platges Accessibles Salou
 
Calendário letivo 2013
Calendário letivo 2013Calendário letivo 2013
Calendário letivo 2013
 
Administrativo-Financeiro (01/08 a 10/09)
Administrativo-Financeiro (01/08 a 10/09)Administrativo-Financeiro (01/08 a 10/09)
Administrativo-Financeiro (01/08 a 10/09)
 
Anna_Celda Exercici 1_ Bloc 1
Anna_Celda Exercici 1_ Bloc 1Anna_Celda Exercici 1_ Bloc 1
Anna_Celda Exercici 1_ Bloc 1
 
La granja de palaudàries
La granja de palaudàriesLa granja de palaudàries
La granja de palaudàries
 
[MSD01]Introduction
[MSD01]Introduction[MSD01]Introduction
[MSD01]Introduction
 
S.E.D.E. en Real Quality San Jose
S.E.D.E. en Real Quality San JoseS.E.D.E. en Real Quality San Jose
S.E.D.E. en Real Quality San Jose
 
Repasse Global (SET)
Repasse Global (SET)Repasse Global (SET)
Repasse Global (SET)
 
Votado Como El Mejor Mail Del A O
Votado Como El Mejor Mail Del A OVotado Como El Mejor Mail Del A O
Votado Como El Mejor Mail Del A O
 

Similaire à Building html5 sites that don't suck

Web Design Trends - the Do's and Don'ts of using HTML5
Web Design Trends - the Do's and Don'ts of using HTML5Web Design Trends - the Do's and Don'ts of using HTML5
Web Design Trends - the Do's and Don'ts of using HTML5Kevin Bruce
 
Open Apereo - Web components workshop
Open Apereo - Web components workshopOpen Apereo - Web components workshop
Open Apereo - Web components workshopbtopro
 
Presentation at FAO, Roma
Presentation at FAO, RomaPresentation at FAO, Roma
Presentation at FAO, RomaCyril Reinhard
 
Client Server 3.0 - 6 Ways JavaScript is Revolutionizing the Client/Server Re...
Client Server 3.0 - 6 Ways JavaScript is Revolutionizing the Client/Server Re...Client Server 3.0 - 6 Ways JavaScript is Revolutionizing the Client/Server Re...
Client Server 3.0 - 6 Ways JavaScript is Revolutionizing the Client/Server Re...Jesse Cravens
 
Rapid Prototyping HTML5 Applications with Node.js
Rapid Prototyping HTML5 Applications with Node.jsRapid Prototyping HTML5 Applications with Node.js
Rapid Prototyping HTML5 Applications with Node.jsJesse Cravens
 
2012 05-10 fia practical problems in mobile web final
2012 05-10 fia practical problems in mobile web final2012 05-10 fia practical problems in mobile web final
2012 05-10 fia practical problems in mobile web finalStephan Haux
 
Koubei banquet 30
Koubei banquet 30Koubei banquet 30
Koubei banquet 30Koubei UED
 
夜宴30期《HTML5 is coming》
夜宴30期《HTML5 is coming》夜宴30期《HTML5 is coming》
夜宴30期《HTML5 is coming》Koubei Banquet
 
2008-2014 Integration Design - Course Summary for slideshare.pdf
2008-2014 Integration Design - Course Summary for slideshare.pdf2008-2014 Integration Design - Course Summary for slideshare.pdf
2008-2014 Integration Design - Course Summary for slideshare.pdfKim Clark
 
Migrating from PHP4 To PHP5 - Zend Webinar
Migrating from PHP4 To PHP5 - Zend WebinarMigrating from PHP4 To PHP5 - Zend Webinar
Migrating from PHP4 To PHP5 - Zend WebinarIvo Jansch
 
Drupal campmanila 2012 (Responsive Web in Drupal with Omega Theme)
Drupal campmanila 2012 (Responsive Web in Drupal with Omega Theme)Drupal campmanila 2012 (Responsive Web in Drupal with Omega Theme)
Drupal campmanila 2012 (Responsive Web in Drupal with Omega Theme)Rick. Bahague
 
SW Drupal Summit: HTML5+Drupal
SW Drupal Summit: HTML5+DrupalSW Drupal Summit: HTML5+Drupal
SW Drupal Summit: HTML5+DrupalJen Simmons
 
HAXTheWeb @ Apereo 19
HAXTheWeb @ Apereo 19HAXTheWeb @ Apereo 19
HAXTheWeb @ Apereo 19btopro
 
Azure Fast 7 - The Fastest & Easiest way to get your Web apps onto Azure
Azure Fast 7 - The Fastest & Easiest way to get your Web apps onto AzureAzure Fast 7 - The Fastest & Easiest way to get your Web apps onto Azure
Azure Fast 7 - The Fastest & Easiest way to get your Web apps onto AzureMicheal Colhoun
 
10 Web Performance Lessons For the 21st Century
10 Web Performance Lessons For the  21st Century10 Web Performance Lessons For the  21st Century
10 Web Performance Lessons For the 21st CenturyMateusz Kwasniewski
 
Getting Started with HTML5 in Tech Com (STC 2012)
Getting Started with HTML5 in Tech Com (STC 2012)Getting Started with HTML5 in Tech Com (STC 2012)
Getting Started with HTML5 in Tech Com (STC 2012)Peter Lubbers
 
Take Your Markup to Eleven
Take Your Markup to ElevenTake Your Markup to Eleven
Take Your Markup to ElevenEmily Lewis
 
HTML5 Drupal Working Group
HTML5 Drupal Working GroupHTML5 Drupal Working Group
HTML5 Drupal Working GroupJen Simmons
 

Similaire à Building html5 sites that don't suck (20)

Web Design Trends - the Do's and Don'ts of using HTML5
Web Design Trends - the Do's and Don'ts of using HTML5Web Design Trends - the Do's and Don'ts of using HTML5
Web Design Trends - the Do's and Don'ts of using HTML5
 
Open Apereo - Web components workshop
Open Apereo - Web components workshopOpen Apereo - Web components workshop
Open Apereo - Web components workshop
 
Presentation at FAO, Roma
Presentation at FAO, RomaPresentation at FAO, Roma
Presentation at FAO, Roma
 
Client Server 3.0 - 6 Ways JavaScript is Revolutionizing the Client/Server Re...
Client Server 3.0 - 6 Ways JavaScript is Revolutionizing the Client/Server Re...Client Server 3.0 - 6 Ways JavaScript is Revolutionizing the Client/Server Re...
Client Server 3.0 - 6 Ways JavaScript is Revolutionizing the Client/Server Re...
 
Rapid Prototyping HTML5 Applications with Node.js
Rapid Prototyping HTML5 Applications with Node.jsRapid Prototyping HTML5 Applications with Node.js
Rapid Prototyping HTML5 Applications with Node.js
 
2012 05-10 fia practical problems in mobile web final
2012 05-10 fia practical problems in mobile web final2012 05-10 fia practical problems in mobile web final
2012 05-10 fia practical problems in mobile web final
 
Koubei banquet 30
Koubei banquet 30Koubei banquet 30
Koubei banquet 30
 
夜宴30期《HTML5 is coming》
夜宴30期《HTML5 is coming》夜宴30期《HTML5 is coming》
夜宴30期《HTML5 is coming》
 
2008-2014 Integration Design - Course Summary for slideshare.pdf
2008-2014 Integration Design - Course Summary for slideshare.pdf2008-2014 Integration Design - Course Summary for slideshare.pdf
2008-2014 Integration Design - Course Summary for slideshare.pdf
 
Migrating from PHP4 To PHP5 - Zend Webinar
Migrating from PHP4 To PHP5 - Zend WebinarMigrating from PHP4 To PHP5 - Zend Webinar
Migrating from PHP4 To PHP5 - Zend Webinar
 
Drupal and HTML5: Playing Well Together
Drupal and HTML5: Playing Well TogetherDrupal and HTML5: Playing Well Together
Drupal and HTML5: Playing Well Together
 
Drupal campmanila 2012 (Responsive Web in Drupal with Omega Theme)
Drupal campmanila 2012 (Responsive Web in Drupal with Omega Theme)Drupal campmanila 2012 (Responsive Web in Drupal with Omega Theme)
Drupal campmanila 2012 (Responsive Web in Drupal with Omega Theme)
 
SW Drupal Summit: HTML5+Drupal
SW Drupal Summit: HTML5+DrupalSW Drupal Summit: HTML5+Drupal
SW Drupal Summit: HTML5+Drupal
 
HAXTheWeb @ Apereo 19
HAXTheWeb @ Apereo 19HAXTheWeb @ Apereo 19
HAXTheWeb @ Apereo 19
 
Azure Fast 7 - The Fastest & Easiest way to get your Web apps onto Azure
Azure Fast 7 - The Fastest & Easiest way to get your Web apps onto AzureAzure Fast 7 - The Fastest & Easiest way to get your Web apps onto Azure
Azure Fast 7 - The Fastest & Easiest way to get your Web apps onto Azure
 
design2_bay_ispisc
design2_bay_ispiscdesign2_bay_ispisc
design2_bay_ispisc
 
10 Web Performance Lessons For the 21st Century
10 Web Performance Lessons For the  21st Century10 Web Performance Lessons For the  21st Century
10 Web Performance Lessons For the 21st Century
 
Getting Started with HTML5 in Tech Com (STC 2012)
Getting Started with HTML5 in Tech Com (STC 2012)Getting Started with HTML5 in Tech Com (STC 2012)
Getting Started with HTML5 in Tech Com (STC 2012)
 
Take Your Markup to Eleven
Take Your Markup to ElevenTake Your Markup to Eleven
Take Your Markup to Eleven
 
HTML5 Drupal Working Group
HTML5 Drupal Working GroupHTML5 Drupal Working Group
HTML5 Drupal Working Group
 

Dernier

GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationMichael W. Hawkins
 
SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024Scott Keck-Warren
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsMark Billinghurst
 
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...shyamraj55
 
Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101Paola De la Torre
 
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersEnhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersThousandEyes
 
Pigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions
 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesSinan KOZAK
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slidespraypatel2
 
How to Remove Document Management Hurdles with X-Docs?
How to Remove Document Management Hurdles with X-Docs?How to Remove Document Management Hurdles with X-Docs?
How to Remove Document Management Hurdles with X-Docs?XfilesPro
 
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | DelhiFULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhisoniya singh
 
Azure Monitor & Application Insight to monitor Infrastructure & Application
Azure Monitor & Application Insight to monitor Infrastructure & ApplicationAzure Monitor & Application Insight to monitor Infrastructure & Application
Azure Monitor & Application Insight to monitor Infrastructure & ApplicationAndikSusilo4
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationSafe Software
 
Pigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions
 
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure serviceWhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure servicePooja Nehwal
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsEnterprise Knowledge
 
Benefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other FrameworksBenefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other FrameworksSoftradix Technologies
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)Gabriella Davis
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationRadu Cotescu
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreternaman860154
 

Dernier (20)

GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR Systems
 
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
 
Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101
 
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersEnhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
 
Pigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food Manufacturing
 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen Frames
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slides
 
How to Remove Document Management Hurdles with X-Docs?
How to Remove Document Management Hurdles with X-Docs?How to Remove Document Management Hurdles with X-Docs?
How to Remove Document Management Hurdles with X-Docs?
 
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | DelhiFULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
 
Azure Monitor & Application Insight to monitor Infrastructure & Application
Azure Monitor & Application Insight to monitor Infrastructure & ApplicationAzure Monitor & Application Insight to monitor Infrastructure & Application
Azure Monitor & Application Insight to monitor Infrastructure & Application
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
Pigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping Elbows
 
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure serviceWhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
 
Benefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other FrameworksBenefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other Frameworks
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreter
 

Building html5 sites that don't suck

  • 1. Creating an HTML5 Site That Doesn’t Suck The do’s and don’ts of using HT ML5. Kevin Bruce 1 Creating an HTML5 Site That Doesn’t Suck - Kevin Bruce - PHP|tek 2012 - May 25th 2012 Tuesday, May 29, 12
  • 2. Who Am I? Designer Developer 2 Creating an HTML5 Site That Doesn’t Suck - Kevin Bruce - PHP|tek 2012 - May 25th 2012 Tuesday, May 29, 12
  • 3. Where I Work 3 Creating an HTML5 Site That Doesn’t Suck - Kevin Bruce - PHP|tek 2012 - May 25th 2012 Tuesday, May 29, 12
  • 4. 2 Years Old, and it’s Still The “New Shiny” 4 Creating an HTML5 Site That Doesn’t Suck - Kevin Bruce - PHP|tek 2012 - May 25th 2012 Tuesday, May 29, 12
  • 5. 2 Years Old, and it’s Still The “New Shiny” + + It’s not just html, it’s a stack of technologies 5 Creating an HTML5 Site That Doesn’t Suck - Kevin Bruce - PHP|tek 2012 - May 25th 2012 Tuesday, May 29, 12
  • 6. New HTML5 Stack Features New Web Design Trends - Kevin Bruce - Frederick New Media & Tech Conference - Feb 23, 2012 Tuesday, May 29, 12
  • 7. New Features your Canvas on Draw pa ge! web examples: 21 HTML5 Canvas Experiments Simple Example 7 Creating an HTML5 Site That Doesn’t Suck - Kevin Bruce - PHP|tek 2012 - May 25th 2012 Tuesday, May 29, 12
  • 8. Canvas <canvas id=”tree” width=”400” height=”200”> Please stop using IE8 and upgrade, already. </canvas> <script> var paper = document.getElementById(“tree”); var context = paper.getContext(“2d”); //set fill color context.fillStyle = “#0066CC”; //create rectangle context.fillRect(10,10, 100, 100); </script> 8 Creating an HTML5 Site That Doesn’t Suck - Kevin Bruce - PHP|tek 2012 - May 25th 2012 Tuesday, May 29, 12
  • 9. New Features Typography FIN AL LY! No more A rial and Times! example: Apple Demo Simple Example 9 Creating an HTML5 Site That Doesn’t Suck - Kevin Bruce - PHP|tek 2012 - May 25th 2012 Tuesday, May 29, 12
  • 10. New Features y our Video Get n o ut! pop cor example: Exploding Video Simple Example 10 Creating an HTML5 Site That Doesn’t Suck - Kevin Bruce - PHP|tek 2012 - May 25th 2012 Tuesday, May 29, 12
  • 11. Client- “That’s Awesome!” “I want it all on my site!” 11 Creating an HTML5 Site That Doesn’t Suck - Kevin Bruce - PHP|tek 2012 - May 25th 2012 Tuesday, May 29, 12
  • 12. Let’s Do A Little Time Travel 12 Creating an HTML5 Site That Doesn’t Suck - Kevin Bruce - PHP|tek 2012 - May 25th 2012 Tuesday, May 29, 12
  • 13. Let’s Do A Little Time Travel 1998 HTML, Rollovers & Banners print(“Hello World”); php3 released 13 Creating an HTML5 Site That Doesn’t Suck - Kevin Bruce - PHP|tek 2012 - May 25th 2012 Tuesday, May 29, 12
  • 14. Let’s Do A Little Time Travel 2000 Flash Explodes! echo “Hello World”; php4 released 14 Creating an HTML5 Site That Doesn’t Suck - Kevin Bruce - PHP|tek 2012 - May 25th 2012 Tuesday, May 29, 12
  • 15. Let’s Do A Little Time Travel 2004-2005 Social Media, Blogs & AJAX $hello = new HelloWorld; php5 released 15 Creating an HTML5 Site That Doesn’t Suck - Kevin Bruce - PHP|tek 2012 - May 25th 2012 Tuesday, May 29, 12
  • 16. Let’s Do A Little Time Travel 2008 Web Apps, JS Frameworks, APIs, Adobe Air 16 Creating an HTML5 Site That Doesn’t Suck - Kevin Bruce - PHP|tek 2012 - May 25th 2012 Tuesday, May 29, 12
  • 17. Flash Has a Powerful Enemy 2010 HTML5 Championed by Apple 17 Creating an HTML5 Site That Doesn’t Suck - Kevin Bruce - PHP|tek 2012 - May 25th 2012 Tuesday, May 29, 12
  • 18. “Learned design from history. Guidelines to follow.” 18 Creating an HTML5 Site That Doesn’t Suck - Kevin Bruce - PHP|tek 2012 - May 25th 2012 Tuesday, May 29, 12
  • 19. Guidelines to Follow Clear Navigation Not a Lot of Text New Web Design Trends - Kevin Bruce - Frederick New Media & Tech Conference - Feb 23, 2012 Tuesday, May 29, 12
  • 20. Guidelines to Follow Clear Navigation Not a Lot of Text If it’s a text-heavy page, leave lots of visual “rest areas” New Web Design Trends - Kevin Bruce - Frederick New Media & Tech Conference - Feb 23, 2012 Tuesday, May 29, 12
  • 21. Whitespace != Bad Google+ Whitespace Issues? People have learned to cope with it. New Web Design Trends - Kevin Bruce - Frederick New Media & Tech Conference - Feb 23, 2012 Tuesday, May 29, 12
  • 22. Guidelines to Follow Clear Navigation Not a Lot of Text If it’s a text-heavy page, leave lots of visual “rest areas” Large(ish) links and Form Elements New Web Design Trends - Kevin Bruce - Frederick New Media & Tech Conference - Feb 23, 2012 Tuesday, May 29, 12
  • 23. Keep Your Content Simple Home Page Your message in as few words as possible A clear call to action! More info, for the people that want to know more. Keep it to below 3 paragraphs worth total! New Web Design Trends - Kevin Bruce - Frederick New Media & Tech Conference - Feb 23, 2012 Tuesday, May 29, 12
  • 24. Other Good Practices Use HTML5 gee-whiz-features minimally and ONLY when necessary! mojoLive only uses the Typography whiz-bang! (we also use a lot of jQuery and CSS3 tricks) oh- and the canvas element for drawing graphs 24 Creating an HTML5 Site That Doesn’t Suck - Kevin Bruce - PHP|tek 2012 - May 25th 2012 Tuesday, May 29, 12
  • 25. Write Code Semantically using css to skin your look entirely 25 Creating an HTML5 Site That Doesn’t Suck - Kevin Bruce - PHP|tek 2012 - May 25th 2012 Tuesday, May 29, 12
  • 26. <header> mojoLive Beta </header> <ul> <li><a href=”/”>Home</a></li> <li><a href=”/signup”>Signup</a></li> </ul> <h1>Beta Access</h1> <h2> We are glad you are interested in our website! We are currently in a restricted alpha/beta period. </h2> Write Code <p>If you've received your invite then enter that information below:</p> Semantically <form> using css to <input type="text" placeholder="Invited Email Address or Beta Code" /> <input type="submit" value="Sign Me Up!" /> skin your look </form> entirely <img src="/img/jojo.signup.png" alt=”monkey holding a letter that says ‘You’re Invited!’” /> <p> If you don't have an invite from us yet, you can request one on the <a href="/">homepage</a> </p> 25 Creating an HTML5 Site That Doesn’t Suck - Kevin Bruce - PHP|tek 2012 - May 25th 2012 Tuesday, May 29, 12
  • 27. “I’m sorry... Why is this important?” 26 Creating an HTML5 Site That Doesn’t Suck - Kevin Bruce - PHP|tek 2012 - May 25th 2012 Tuesday, May 29, 12
  • 28. Because People Scan, they don’t read. 27 Creating an HTML5 Site That Doesn’t Suck - Kevin Bruce - PHP|tek 2012 - May 25th 2012 Tuesday, May 29, 12
  • 29. Because People Scan, they don’t read. They don’t want to have to think. 28 Creating an HTML5 Site That Doesn’t Suck - Kevin Bruce - PHP|tek 2012 - May 25th 2012 Tuesday, May 29, 12
  • 30. Because People Scan, they don’t read. They don’t want to have to think. They want the information now yesterday 29 Creating an HTML5 Site That Doesn’t Suck - Kevin Bruce - PHP|tek 2012 - May 25th 2012 Tuesday, May 29, 12
  • 31. and... 30 Creating an HTML5 Site That Doesn’t Suck - Kevin Bruce - PHP|tek 2012 - May 25th 2012 Tuesday, May 29, 12
  • 32. Mobile Smart Phones An awesome pocket-sized computer! Apple sold 55 million iPhones last year in a (tiny) screen size They will be viewing your site on this screen 31 Creating an HTML5 Site That Doesn’t Suck - Kevin Bruce - PHP|tek 2012 - May 25th 2012 Tuesday, May 29, 12
  • 33. “My Client can’t afford an app and their site looks tiny on a phone...” 32 Creating an HTML5 Site That Doesn’t Suck - Kevin Bruce - PHP|tek 2012 - May 25th 2012 Tuesday, May 29, 12
  • 34. A simple tool for every eventuality 33 Creating an HTML5 Site That Doesn’t Suck - Kevin Bruce - PHP|tek 2012 - May 25th 2012 Tuesday, May 29, 12
  • 35. Responsive Design flexible grid layouts that respond to the size of your browser window. 34 Creating an HTML5 Site That Doesn’t Suck - Kevin Bruce - PHP|tek 2012 - May 25th 2012 Tuesday, May 29, 12
  • 36. Responsive Design A Fairly Quick and Painless Solution 1. The heavy-lifting is done is CSS(3) 2. It can be enhanced with CSS techniques and jQuery 3. New techniques for loading images depending on viewport size 35 Creating an HTML5 Site That Doesn’t Suck - Kevin Bruce - PHP|tek 2012 - May 25th 2012 Tuesday, May 29, 12
  • 37. Responsive Design Demo 36 Creating an HTML5 Site That Doesn’t Suck - Kevin Bruce - PHP|tek 2012 - May 25th 2012 Tuesday, May 29, 12
  • 38. Responsive Design 1. Use the @import rule to import style rules from other style sheets: <div id=”google_whitespace” style=”@import url(style600min.css) screen and (min-width: 600px);”> </div> s?! e S tyle I nlin .... Sh ame CSS3 allows for Viewport Size Detection 37 Creating an HTML5 Site That Doesn’t Suck - Kevin Bruce - PHP|tek 2012 - May 25th 2012 Tuesday, May 29, 12
  • 39. Responsive Design 2. Put media queries directly in the style sheet. This is the most common approach. @media screen and (min-width: 400px) and (orientation: portrait) {                 #nav li {                     float: right;                 } Can get c         } luttered, @media screen and (min-width: 800px) { to write & but easy              #nav li { incorporate                  float: left; existing sh into   } } eets CSS3 allows for Viewport Size Detection 38 Creating an HTML5 Site That Doesn’t Suck - Kevin Bruce - PHP|tek 2012 - May 25th 2012 Tuesday, May 29, 12
  • 40. Responsive Design 3. Include a query in a linked style sheet’s media attribute: <link rel="stylesheet"  type="text/css"  media="screen and (max-device-width: 800px)" href="style800.css" /> solution but a The cleanest aintain pain to m CSS3 allows for Viewport Size Detection 39 Creating an HTML5 Site That Doesn’t Suck - Kevin Bruce - PHP|tek 2012 - May 25th 2012 Tuesday, May 29, 12
  • 41. more info Link ies Responsive Web Design Katrien De Graeve http://bit.ly/msftRespDesign Responsive Web Design Techniques, Tools and Design Strategies Smashing Editorial http://bit.ly/smashResponsDesign 10 Beautiful examples of responsive Web design Design & Dev http://tnw.co/10respDesign 40 Creating an HTML5 Site That Doesn’t Suck - Kevin Bruce - PHP|tek 2012 - May 25th 2012 Tuesday, May 29, 12
  • 42. The Takeaway... 41 Creating an HTML5 Site That Doesn’t Suck - Kevin Bruce - PHP|tek 2012 - May 25th 2012 Tuesday, May 29, 12
  • 43. Keep it Simple Use technologies only when they serve a purpose. Think “minimalist” Design to accommodate for all devices where possible. never flashturbate in public 42 Creating an HTML5 Site That Doesn’t Suck - Kevin Bruce - PHP|tek 2012 - May 25th 2012 Tuesday, May 29, 12
  • 44. Thank You Personal Site: kevinbruce.com Professional Site: mojoLive.com Blog: neutralgood.net Twitter: @kevinbruce on ... me Rate 43 Creating an HTML5 Site That Doesn’t Suck - Kevin Bruce - PHP|tek 2012 - May 25th 2012 Tuesday, May 29, 12