SlideShare a Scribd company logo
1 of 44
Download to read offline
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

More Related Content

Viewers also liked

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
 

Viewers also liked (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
 

Similar to 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
 

Similar to 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
 

Recently uploaded

Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 3652toLead Limited
 
Story boards and shot lists for my a level piece
Story boards and shot lists for my a level pieceStory boards and shot lists for my a level piece
Story boards and shot lists for my a level piececharlottematthew16
 
H2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo Day
H2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo DayH2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo Day
H2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo DaySri Ambati
 
DevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsDevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsSergiu Bodiu
 
Powerpoint exploring the locations used in television show Time Clash
Powerpoint exploring the locations used in television show Time ClashPowerpoint exploring the locations used in television show Time Clash
Powerpoint exploring the locations used in television show Time Clashcharlottematthew16
 
Scanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsScanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsRizwan Syed
 
Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!Manik S Magar
 
Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Enterprise Knowledge
 
From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .Alan Dix
 
Gen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfGen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfAddepto
 
Take control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test SuiteTake control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test SuiteDianaGray10
 
Commit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easyCommit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easyAlfredo García Lavilla
 
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptxMerck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptxLoriGlavin3
 
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024BookNet Canada
 
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage Cost
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage CostLeverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage Cost
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage CostZilliz
 
Advanced Computer Architecture – An Introduction
Advanced Computer Architecture – An IntroductionAdvanced Computer Architecture – An Introduction
Advanced Computer Architecture – An IntroductionDilum Bandara
 
Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Mattias Andersson
 
How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.Curtis Poe
 
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Mark Simos
 

Recently uploaded (20)

Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365
 
Story boards and shot lists for my a level piece
Story boards and shot lists for my a level pieceStory boards and shot lists for my a level piece
Story boards and shot lists for my a level piece
 
H2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo Day
H2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo DayH2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo Day
H2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo Day
 
DevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsDevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platforms
 
Powerpoint exploring the locations used in television show Time Clash
Powerpoint exploring the locations used in television show Time ClashPowerpoint exploring the locations used in television show Time Clash
Powerpoint exploring the locations used in television show Time Clash
 
Scanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsScanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL Certs
 
Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!
 
Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024
 
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptxE-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
 
From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .
 
Gen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfGen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdf
 
Take control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test SuiteTake control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test Suite
 
Commit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easyCommit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easy
 
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptxMerck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
 
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
 
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage Cost
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage CostLeverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage Cost
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage Cost
 
Advanced Computer Architecture – An Introduction
Advanced Computer Architecture – An IntroductionAdvanced Computer Architecture – An Introduction
Advanced Computer Architecture – An Introduction
 
Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?
 
How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.
 
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
 

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