SlideShare a Scribd company logo
HTML5
Un anno dopo...
Cristiano Rastelli

               ➜   Freelance (“Area Web”)

               ➜   Developer & Designer
                   (da oltre un decennio)

               ➜   Web + App UI + Mobile

               ➜   Passionate of UX, AI, Agile
DEFINIZIONE
W3C
WHATWG
STANDARD


HTML5
           Rif: [1] [2] [3]
HTML5
HTML5
CSS3 GEO
Font-embedding
Javascript “magics”
Local-database
Webworkers Websockets
HTML5
Open Web Stack


NEWT
                 Rif: [4]
BREVEMENTE
HTML5 in due minuti...

 Novità nel linguaggio:
 • introduzione di nuovi elementi semantici
 • introduzione di nuovi attributi (anche “custom”)
 • eliminazione elementi/attributi obsoleti
 • definizione di un nuovo doctype
 • definizione di nuove regole di sintassi




                                                      Rif: [5]
HTML5 in due minuti...
 Introduzione di nuove API per semplificare lo
 sviluppo di applicazioni web:
 • disegno bidimensionale su canvas
 • riproduzione audio/video integrata
 • gestione di storage di dati locali
 • geo-localizzazione dell’utente
 • gestione dello stato offline delle pagine web
 • utilizzo di processi paralleli e in background


                                                    Rif: [5]
HTML5 in due minuti...
 E molto altro ancora:
 • drag&drop
 • postMessage
 • browser history
 • editing nativo
 • registerProtocolHandler
 • querySelectorAll



                             Rif: [5]
Supporto da parte dei browser


Canvas
Audio/Video       *   *   *              *
Storage
Offline
Workers/Sockets
Form 2.0
Geolocation
                              Rif: [6] [7] [8] [9] [10]
+1 ANNO
5
Come già previsto
HTML5 è subito
diventata una
buzzword…
Ci permette di “parlarne”.
Ci permette di “vendere”.
Ci permette di “bullarci”
Rif: [11] [12] [13]
Contrordine, compagni!




HTML5
Contrordine, compagni!




   HTML
HTML5 diventa HTML
 “After that we realised that the demand for new features in
 HTML remained high […] we moved to a new development
 model, where the technology is not versioned and instead
 we just have a living document that defines the technology
 as it evolves.”

 “The WHATWG HTML spec can now be considered a "living
 standard". […] it made no sense for us to keep referring to
 it as merely a draft. We will no longer be following the
 "snapshot" model of spec development […]”
                             WHATWG - "HTML is the new HTML5"



                                                         Rif: [14] [15] [16]
Flash is (almost) dead




                         Rif: [17]
HTML5 è ormai “mainstream”
      Google Trends per “HTML5”




      http://www.google.com/trends?q=html5
Apple




        Rif: [18]
Google




         Rif: [19]
Microsoft




            Rif: [20]
Microsoft




            Rif: [20]
World Wide Web Consortium




                            Rif: [11]
Adobe
Adobe
HTML5 “toolboxes”
Frameworks
Multi-device & Multi-platform
SproutCore




        http://www.sproutcore.com/
The-M-Project




        http://www.the-m-project.org/
Appcelerator (a.k.a. Titanium)




         http://www.appcelerator.com
PhoneGap




       http://www.phonegap.com/
Sencha Touch




      http://www.sencha.com/products/touch/
Jo




     http://joapp.com/
Jo




     http://joapp.com/
Polyfills
No, non ho detto “polisucco”
Modernizr




        http://www.modernizr.com/
HTML5 Shiv




      http://code.google.com/p/html5shiv/
Boilerplates
HTML5 Boilerplate




        http://html5boilerplate.com/
Initializr




             http://initializr.com/
Baker




        http://bakerframework.com/
Font-services
Typekit




          http://typekit.com/
Fontdeck




           http://fontdeck.com/
Fontspring




       http://www.fontspring.com/fontface
Kernest




          http://kernest.com/
Typotheque




      http://www.typotheque.com/webfonts
Fonts.com




        http://webfonts.fonts.com/
FontShop




           http://www.fontshop.com
The League of Moveable Type




      http://www.theleagueofmoveabletype.com/
ESPERIENZA
L’effetto iPad
L’effetto iPad (1)



  Se non si vede oppure non
  funziona su iPad, non esiste.
L’effetto iPad (2)




       web-application
                <html5>


               browser (player)

           native-application (shell)
iTunes Store è in HTML!
Adozione nei progetti recenti

      Chi             Cosa                  Come
   Quotidiano    Web-App per iPad             CSS3

   Quotidiano    Mobile Web Version           CSS3

   Finanziaria    Gestionale Web       CSS3 + Chrome-only

     Evento          Sito Web         HTML5 + CSS3 avanzato

     Scuola          Sito Web             HTML5 + CSS3

     Banca         Magazine Web       HTML5 + CSS3 avanzato
Adozione nei progetti recenti

        Chi             Cosa                  Come
     Quotidiano    Web-App per iPad             CSS3

     Quotidiano    Mobile Web Version           CSS3

     Finanziaria    Gestionale Web       CSS3 + Chrome-only

       Evento          Sito Web         HTML5 + CSS3 avanzato

       Scuola          Sito Web             HTML5 + CSS3

       Banca         Magazine Web       HTML5 + CSS3 avanzato



Prossimi progetti: 6 su 6 con HTML5+CSS3 avanzati
Requisiti di progetto
Requisiti di progetto
  “Il sito andrà sviluppato per versioni
  di Internet Explorer 7 e superiori.
  In una fase immediatamente
  successiva al lancio, verrà valutata
  l’opportunità di realizzare versioni
  ad-hoc per iPad, tablet e terminali
  mobili.
  Si richiede infine che, in una fase
  successiva, il sito sia compatibile
  anche con Internet Explorer 6.”
Confini ben delimitati
Molteplicità + Compatibilità


   Multi-Browser
   Multi-Platform
   Multi-Device
“Hortus conclusus”
CONCRETAMENTE
Frameworks & co.

• HTML5 Shiv: it really rules!
• Domani: Modernizr (forse)
• Boilerplates: si può imparare
  molto studiando come sono
  realizzati, ma in un contesto di
  “hortus-conclusus” spesso
  sono troppo o generici o
  specifici per essere usati

• Molto “trial & error”!
Svolta davvero “epocale”!

    Progressive Enhancement
         Sviluppo per IE6, poi lo faccio andare bene
              anche su Firefox, Chrome e Safari




     Graceful Degradation
     Sviluppo per browser di tipo evoluto (iPad compreso)
          facendo in modo che su browser più vecchi
              si veda comunque in modo decente
<HEAD/>
<!-- [META TAGS] -->
<meta name="viewport" content="width=device-width, maximum-scale=1.0, user-scalable=yes">
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-status-bar-style" content="black" />

<!-- [FILE CSS] -->
<link rel="stylesheet" href="style.css" media="screen" />
<link rel="stylesheet" href="style_iphone.css" media="screen and (max-device-width: 480px)" />
<link rel="stylesheet" href="style_ipad.css" media="screen and (min-device-width: 768px) and
(max-device-width: 1024px)" />

<!-- [ICONS] -->
<link rel="apple-touch-icon" href="/home_icon.png"/>
<link rel="apple-touch-startup-image" href="/splash_image.png" />

<!--[if lt IE 9]>
<script src="script/js/html5shim.js"></script>
<![endif]-->
“Divitis”




            Rif: [21] [22]
“Divitis”
 <body>
 
                    <div id=”boxWrapper”>
   
                  
                 <div id=”boxHeaderWrap”>
     
                  
               
             <div id=”boxHeader”/>
       
                  
               
           <div id=”boxMenu”/>
                                            </div>
         
                  
               <div id=”boxRoot”>
PRIMA




           
                  
             
         <div class=”heading”>
                                                          <h1/>
                                                      </div>
             
                  
             
       <div id=”boxMain”>
               
                  
             
     ………
                                                      </div>
                                                  </div>
                                    </div>
                 
                  <div id=”boxFooter”>…</div>
                   </body>
                                                                              Rif: [21] [22]
“Divitis”
 <body>                                                                        <body>
 
                    <div id=”boxWrapper”>                                           <section>
   
                  
                 <div id=”boxHeaderWrap”>                              <aside>
     
                  
               
             <div id=”boxHeader”/>                       <header/>
       
                  
               
           <div id=”boxMenu”/>                         <nav/>
                                            </div>                                            </aside>
         
                  
               <div id=”boxRoot”>                                <article>




                                                                              DOPO
PRIMA




           
                  
             
         <div class=”heading”>                       <hgroup>
                                                          <h1/>                                        <h1/>
                                                      </div>                                      </hgroup>
             
                  
             
       <div id=”boxMain”>                          <section>
               
                  
             
     ………                      
      
     
     ………
                                                      </div>                                      </section>
                                                  </div>                                      </article>
                                    </div>                                              </section>
                 
                  <div id=”boxFooter”>…</div>                  
      <footer>…</footer>
                   </body>                                                         </body>
                                                                                                               Rif: [21] [22]
CSS3

       •   @font-face (font-embedding)
       •   @media-orientation (iPad/iPhone)
       •   multiple backgrounds
       •   gradients
       •   rounded corners
       •   box & text shadows
       •   alpha colors (rgba)
       •   transitions & transformations
@font-face
@font-face {
      font-family: 'MySuperWebFont';
      src: url('superwebfont.eot');

     src: local('☺'), url('superwebfont.woff') format('woff'), url('superwebfont.ttf')
  
   format ('truetype'), url('superwebfont.svg#webfontc2vQD8pF') format('svg');
      font-weight: normal;
      font-style: normal;
    }

p { font-family: MySuperWebFont, Verdana, Arial, sans; }
@font-face
@font-face {
      font-family: 'MySuperWebFont';
      src: url('superwebfont.eot');

     src: local('☺'), url('superwebfont.woff') format('woff'), url('superwebfont.ttf')
  
   format ('truetype'), url('superwebfont.svg#webfontc2vQD8pF') format('svg');
      font-weight: normal;
      font-style: normal;
    }

p { font-family: MySuperWebFont, Verdana, Arial, sans; }
@media-orientation
Sfruttare il “cascade”
 /* ---- layout ---- */
 margin: 0px; padding: 0px;

 /* ---- formatting ---- */
 font-family: Helvetica, Arial, sans-serif; font-size: 16px; color: #333333;
 background: #E4E4E4 url(xxx.png) repeat-x top left;
 border: 10px solid #FFFFFF;

 /* ---- css3 ---- */
 background-image: -webkit-gradient(linear, 0 0, 0 100%, from(rgba), to(rgba));
 background-image: -moz-linear-gradient(rgba, rgba);
 -webkit-background-size: 1200px 375px;
 -moz-background-size: 1200px 375px;
 -webkit-border-radius: 10px;
 -moz-border-radius: 10px;
 border-radius: 10px;
Sfruttare il “cascade”
 /* ---- layout ---- */
 margin: 0px; padding: 0px;

 /* ---- formatting ---- */
 font-family: Helvetica, Arial, sans-serif; font-size: 16px; color: #333333;
 background: #E4E4E4 url(xxx.png) repeat-x top left;
 border: 10px solid #FFFFFF;

 /* ---- css3 ---- */
 background-image: -webkit-gradient(linear, 0 0, 0 100%, from(rgba), to(rgba));
 background-image: -moz-linear-gradient(rgba, rgba);
 -webkit-background-size: 1200px 375px;
 -moz-background-size: 1200px 375px;
 -webkit-border-radius: 10px;
 -moz-border-radius: 10px;
 border-radius: 10px;
NoSQL Day   (Brescia - 25 marzo 2011)




                                 Rif: [23]
PREVISIONI
HTML5, la piattaforma

“It's taken 20 years because the
underlying standards had to evolve
from the proprietary Mac and Windows
platforms. But they have both adopted
HTML5 as a future direction.
So that means in future a lot of apps
will be running in HTML5 in both
mobile and non-mobile form”
Eric Schmidt - CEO Google Inc.
Grazie per l’attenzione.

       Cristiano Rastelli
           www.didoo.net
REFERENZE
Links
[1]   http://www.w3.org/TR/html5/
[2]   http://dev.w3.org/html5/spec/
[3]   http://www.whatwg.org/html/
[4]   http://www.brucelawson.co.uk/2010/meet-newt-new-exciting-web-technologies/
[5]   http://robertnyman.com/2009/10/14/an-introduction-to-html5/
[6]   http://caniuse.com/
[7]   http://www.html5test.com/
[8]   http://www.findmebyip.com/
[9]   http://wiki.whatwg.org/wiki/Implementations_in_Web_browsers
[10] http://en.wikipedia.org/wiki/Comparison_of_layout_engines_(HTML5)
[11] http://www.w3.org/html/logo/
[12] http://www.webstandards.org/2011/01/18/regarding-the-html5-logo/
[13] http://adactio.com/journal/4289/
[14] http://blog.whatwg.org/html-is-the-new-html5
[15] http://www.zeldman.com/2011/01/27/html5-vs-html/
[16] http://www.456bereastreet.com/archive/201101/html_beyond_html5/
[17] http://www.apple.com/hotnews/thoughts-on-flash/
[18] http://www.apple.com/html5/
[19] http://www.html5rocks.com/
Links
[20]   http://ie.microsoft.com/testdrive/
[21]   http://en.wiktionary.org/wiki/divitis
[22]   http://nate.koechley.com/blog/2006/12/15/divitis_and_correct_div_usage/
[23]   http://nosqlday.it




 »     http://diveintohtml5.org/

 »     http://html5doctor.com/

 »     http://html5demos.com/

 »     http://html5gallery.com/

 »     http://html5test.com/

 »     http://www.html5rocks.com/

More Related Content

PPTX
Matteo Bicocchi - Introducing HTML5
PDF
Best practices per lo sviluppo Frontend
PDF
Corso WebApp iOS - Lezione 06: Web Development for iOS Devices
PDF
Html e Css - 2 | WebMaster & WebDesigner
PDF
Html e Css - 2 | WebMaster & WebDesigner
PPTX
Come sviluppare applicazioni cross device con HTML
PDF
HTML5 e Css3 - 4 | WebMaster & WebDesigner
PPTX
Html5 e css3 nuovi strumenti per un nuovo web
Matteo Bicocchi - Introducing HTML5
Best practices per lo sviluppo Frontend
Corso WebApp iOS - Lezione 06: Web Development for iOS Devices
Html e Css - 2 | WebMaster & WebDesigner
Html e Css - 2 | WebMaster & WebDesigner
Come sviluppare applicazioni cross device con HTML
HTML5 e Css3 - 4 | WebMaster & WebDesigner
Html5 e css3 nuovi strumenti per un nuovo web

Viewers also liked (20)

PDF
Html e Css - 3 | WebMaster & WebDesigner
PDF
HTML5 e Css3 - 5 | WebMaster & WebDesigner
PDF
Html 5: una breve guida!
PDF
HTML5 e Css3 - 3 | WebMaster & WebDesigner
PDF
HTML5 e Css3 - 2 | WebMaster & WebDesigner
PDF
HTML5 e Css3 - 6 | WebMaster & WebDesigner
PDF
HTML5 e Css3 - 7 | WebMaster & WebDesigner
PDF
HTML5 e Css3 - 3 | WebMaster & WebDesigner
PDF
HTML5 e Css3 - 1 | WebMaster & WebDesigner
PDF
Php mysql3
PDF
Guida introduttiva al css
PDF
Introduzione ai Sistemi Operativi
PDF
HTML5 e Css3 - 1 | WebMaster & WebDesigner
PDF
Struttura di una pagina html
PDF
Html5 appunti.0
PDF
Tecnologie informatiche
PDF
Python - Primi passi
PDF
HTML5, CSS3 e JavaScript: Web app per tutti gli schermi by Marco Casario
PDF
Introduzione JQuery
PDF
HTML e CSS
Html e Css - 3 | WebMaster & WebDesigner
HTML5 e Css3 - 5 | WebMaster & WebDesigner
Html 5: una breve guida!
HTML5 e Css3 - 3 | WebMaster & WebDesigner
HTML5 e Css3 - 2 | WebMaster & WebDesigner
HTML5 e Css3 - 6 | WebMaster & WebDesigner
HTML5 e Css3 - 7 | WebMaster & WebDesigner
HTML5 e Css3 - 3 | WebMaster & WebDesigner
HTML5 e Css3 - 1 | WebMaster & WebDesigner
Php mysql3
Guida introduttiva al css
Introduzione ai Sistemi Operativi
HTML5 e Css3 - 1 | WebMaster & WebDesigner
Struttura di una pagina html
Html5 appunti.0
Tecnologie informatiche
Python - Primi passi
HTML5, CSS3 e JavaScript: Web app per tutti gli schermi by Marco Casario
Introduzione JQuery
HTML e CSS
Ad

Similar to Html5 - Un anno dopo (20)

PDF
Bootstrap 3.0 - Introduzione
PDF
jQuery - 1 | WebMaster & WebDesigner
ODP
Drupal Day 2012 - DRUPAL 8: I CAMBIAMENTI CHE CI ASPETTANO
PDF
jQuery - 1 | WebMaster & WebDesigner
PDF
DDAY2014 - Performance in Drupal 8
PDF
L'Arte del Templating: Typoscript, Fluid e Grid Elements
PDF
Ancora anatomia, le pagine HTML(5)
ODP
PDF
Html e Css - 4 | WebMaster & WebDesigner
PPT
Dojo nuovo look alle vostre applicazioni web Domino
PDF
Primo approccio al design adattivo
PDF
jQuery - 4 | WebMaster & WebDesigner
PDF
I linguaggi del web - seconda edizione (2° giornata)
PDF
PDF
WordPress, un CMS per la scuola: novità e sviluppi - Porte Aperte sul Web a S...
PDF
Gestire i pdf con iOS
PPTX
Flavio atzeni smau mi 2013
KEY
HTML - Primi Passi
ODP
Presentazione wicket
Bootstrap 3.0 - Introduzione
jQuery - 1 | WebMaster & WebDesigner
Drupal Day 2012 - DRUPAL 8: I CAMBIAMENTI CHE CI ASPETTANO
jQuery - 1 | WebMaster & WebDesigner
DDAY2014 - Performance in Drupal 8
L'Arte del Templating: Typoscript, Fluid e Grid Elements
Ancora anatomia, le pagine HTML(5)
Html e Css - 4 | WebMaster & WebDesigner
Dojo nuovo look alle vostre applicazioni web Domino
Primo approccio al design adattivo
jQuery - 4 | WebMaster & WebDesigner
I linguaggi del web - seconda edizione (2° giornata)
WordPress, un CMS per la scuola: novità e sviluppi - Porte Aperte sul Web a S...
Gestire i pdf con iOS
Flavio atzeni smau mi 2013
HTML - Primi Passi
Presentazione wicket
Ad

More from Cristiano Rastelli (20)

PDF
Let There Be Peace On CSS
PDF
Style Guides, Pattern Libraries, Design Systems and other amenities.
PDF
Interaction Design Above the Level of a Single Man
PDF
The data we should not miss
PDF
Adaptive, Responsive, Mobile. A liquid web.
PDF
What future we want for our Software Industry?
PDF
Slides are easy
PDF
Mobile last
PDF
Perché a fare i preventivi facciamo così schifo? @BetterSoftware 2102
PDF
Exploring ideas
PDF
Perché a fare i preventivi facciamo così schifo?
PDF
HCI to UX to HCI - Parte B
PDF
HCI to UX to HCI - Parte A
PDF
HTML5 for Mobile
PDF
The big bang theory
PDF
Senior 2.0 (reprise)
PDF
La qualità non paga
PDF
Il valore percepito
PDF
Paper - "Esperienza utente e fruizione dei contenuti nei quotidiani online i...
PDF
Esperienza utente e fruizione dei contenuti nei quotidiani online in Italia.
Let There Be Peace On CSS
Style Guides, Pattern Libraries, Design Systems and other amenities.
Interaction Design Above the Level of a Single Man
The data we should not miss
Adaptive, Responsive, Mobile. A liquid web.
What future we want for our Software Industry?
Slides are easy
Mobile last
Perché a fare i preventivi facciamo così schifo? @BetterSoftware 2102
Exploring ideas
Perché a fare i preventivi facciamo così schifo?
HCI to UX to HCI - Parte B
HCI to UX to HCI - Parte A
HTML5 for Mobile
The big bang theory
Senior 2.0 (reprise)
La qualità non paga
Il valore percepito
Paper - "Esperienza utente e fruizione dei contenuti nei quotidiani online i...
Esperienza utente e fruizione dei contenuti nei quotidiani online in Italia.

Html5 - Un anno dopo

  • 2. Cristiano Rastelli ➜ Freelance (“Area Web”) ➜ Developer & Designer (da oltre un decennio) ➜ Web + App UI + Mobile ➜ Passionate of UX, AI, Agile
  • 4. W3C WHATWG STANDARD HTML5 Rif: [1] [2] [3]
  • 9. HTML5 in due minuti... Novità nel linguaggio: • introduzione di nuovi elementi semantici • introduzione di nuovi attributi (anche “custom”) • eliminazione elementi/attributi obsoleti • definizione di un nuovo doctype • definizione di nuove regole di sintassi Rif: [5]
  • 10. HTML5 in due minuti... Introduzione di nuove API per semplificare lo sviluppo di applicazioni web: • disegno bidimensionale su canvas • riproduzione audio/video integrata • gestione di storage di dati locali • geo-localizzazione dell’utente • gestione dello stato offline delle pagine web • utilizzo di processi paralleli e in background Rif: [5]
  • 11. HTML5 in due minuti... E molto altro ancora: • drag&drop • postMessage • browser history • editing nativo • registerProtocolHandler • querySelectorAll Rif: [5]
  • 12. Supporto da parte dei browser Canvas Audio/Video * * * * Storage Offline Workers/Sockets Form 2.0 Geolocation Rif: [6] [7] [8] [9] [10]
  • 14. 5 Come già previsto HTML5 è subito diventata una buzzword…
  • 15. Ci permette di “parlarne”.
  • 16. Ci permette di “vendere”.
  • 17. Ci permette di “bullarci”
  • 21. HTML5 diventa HTML “After that we realised that the demand for new features in HTML remained high […] we moved to a new development model, where the technology is not versioned and instead we just have a living document that defines the technology as it evolves.” “The WHATWG HTML spec can now be considered a "living standard". […] it made no sense for us to keep referring to it as merely a draft. We will no longer be following the "snapshot" model of spec development […]” WHATWG - "HTML is the new HTML5" Rif: [14] [15] [16]
  • 22. Flash is (almost) dead Rif: [17]
  • 23. HTML5 è ormai “mainstream” Google Trends per “HTML5” http://www.google.com/trends?q=html5
  • 24. Apple Rif: [18]
  • 25. Google Rif: [19]
  • 26. Microsoft Rif: [20]
  • 27. Microsoft Rif: [20]
  • 28. World Wide Web Consortium Rif: [11]
  • 29. Adobe
  • 30. Adobe
  • 33. SproutCore http://www.sproutcore.com/
  • 34. The-M-Project http://www.the-m-project.org/
  • 35. Appcelerator (a.k.a. Titanium) http://www.appcelerator.com
  • 36. PhoneGap http://www.phonegap.com/
  • 37. Sencha Touch http://www.sencha.com/products/touch/
  • 38. Jo http://joapp.com/
  • 39. Jo http://joapp.com/
  • 41. No, non ho detto “polisucco”
  • 42. Modernizr http://www.modernizr.com/
  • 43. HTML5 Shiv http://code.google.com/p/html5shiv/
  • 45. HTML5 Boilerplate http://html5boilerplate.com/
  • 46. Initializr http://initializr.com/
  • 47. Baker http://bakerframework.com/
  • 49. Typekit http://typekit.com/
  • 50. Fontdeck http://fontdeck.com/
  • 51. Fontspring http://www.fontspring.com/fontface
  • 52. Kernest http://kernest.com/
  • 53. Typotheque http://www.typotheque.com/webfonts
  • 54. Fonts.com http://webfonts.fonts.com/
  • 55. FontShop http://www.fontshop.com
  • 56. The League of Moveable Type http://www.theleagueofmoveabletype.com/
  • 59. L’effetto iPad (1) Se non si vede oppure non funziona su iPad, non esiste.
  • 60. L’effetto iPad (2) web-application <html5> browser (player) native-application (shell)
  • 61. iTunes Store è in HTML!
  • 62. Adozione nei progetti recenti Chi Cosa Come Quotidiano Web-App per iPad CSS3 Quotidiano Mobile Web Version CSS3 Finanziaria Gestionale Web CSS3 + Chrome-only Evento Sito Web HTML5 + CSS3 avanzato Scuola Sito Web HTML5 + CSS3 Banca Magazine Web HTML5 + CSS3 avanzato
  • 63. Adozione nei progetti recenti Chi Cosa Come Quotidiano Web-App per iPad CSS3 Quotidiano Mobile Web Version CSS3 Finanziaria Gestionale Web CSS3 + Chrome-only Evento Sito Web HTML5 + CSS3 avanzato Scuola Sito Web HTML5 + CSS3 Banca Magazine Web HTML5 + CSS3 avanzato Prossimi progetti: 6 su 6 con HTML5+CSS3 avanzati
  • 65. Requisiti di progetto “Il sito andrà sviluppato per versioni di Internet Explorer 7 e superiori. In una fase immediatamente successiva al lancio, verrà valutata l’opportunità di realizzare versioni ad-hoc per iPad, tablet e terminali mobili. Si richiede infine che, in una fase successiva, il sito sia compatibile anche con Internet Explorer 6.”
  • 67. Molteplicità + Compatibilità Multi-Browser Multi-Platform Multi-Device
  • 70. Frameworks & co. • HTML5 Shiv: it really rules! • Domani: Modernizr (forse) • Boilerplates: si può imparare molto studiando come sono realizzati, ma in un contesto di “hortus-conclusus” spesso sono troppo o generici o specifici per essere usati • Molto “trial & error”!
  • 71. Svolta davvero “epocale”! Progressive Enhancement Sviluppo per IE6, poi lo faccio andare bene anche su Firefox, Chrome e Safari Graceful Degradation Sviluppo per browser di tipo evoluto (iPad compreso) facendo in modo che su browser più vecchi si veda comunque in modo decente
  • 72. <HEAD/> <!-- [META TAGS] --> <meta name="viewport" content="width=device-width, maximum-scale=1.0, user-scalable=yes"> <meta name="apple-mobile-web-app-capable" content="yes" /> <meta name="apple-mobile-web-app-status-bar-style" content="black" /> <!-- [FILE CSS] --> <link rel="stylesheet" href="style.css" media="screen" /> <link rel="stylesheet" href="style_iphone.css" media="screen and (max-device-width: 480px)" /> <link rel="stylesheet" href="style_ipad.css" media="screen and (min-device-width: 768px) and (max-device-width: 1024px)" /> <!-- [ICONS] --> <link rel="apple-touch-icon" href="/home_icon.png"/> <link rel="apple-touch-startup-image" href="/splash_image.png" /> <!--[if lt IE 9]> <script src="script/js/html5shim.js"></script> <![endif]-->
  • 73. “Divitis” Rif: [21] [22]
  • 74. “Divitis” <body> <div id=”boxWrapper”> <div id=”boxHeaderWrap”> <div id=”boxHeader”/> <div id=”boxMenu”/> </div> <div id=”boxRoot”> PRIMA <div class=”heading”> <h1/> </div> <div id=”boxMain”> ……… </div> </div> </div> <div id=”boxFooter”>…</div> </body> Rif: [21] [22]
  • 75. “Divitis” <body> <body> <div id=”boxWrapper”> <section> <div id=”boxHeaderWrap”> <aside> <div id=”boxHeader”/> <header/> <div id=”boxMenu”/> <nav/> </div> </aside> <div id=”boxRoot”> <article> DOPO PRIMA <div class=”heading”> <hgroup> <h1/> <h1/> </div> </hgroup> <div id=”boxMain”> <section> ……… ……… </div> </section> </div> </article> </div> </section> <div id=”boxFooter”>…</div> <footer>…</footer> </body> </body> Rif: [21] [22]
  • 76. CSS3 • @font-face (font-embedding) • @media-orientation (iPad/iPhone) • multiple backgrounds • gradients • rounded corners • box & text shadows • alpha colors (rgba) • transitions & transformations
  • 77. @font-face @font-face { font-family: 'MySuperWebFont'; src: url('superwebfont.eot'); src: local('☺'), url('superwebfont.woff') format('woff'), url('superwebfont.ttf') format ('truetype'), url('superwebfont.svg#webfontc2vQD8pF') format('svg'); font-weight: normal; font-style: normal; } p { font-family: MySuperWebFont, Verdana, Arial, sans; }
  • 78. @font-face @font-face { font-family: 'MySuperWebFont'; src: url('superwebfont.eot'); src: local('☺'), url('superwebfont.woff') format('woff'), url('superwebfont.ttf') format ('truetype'), url('superwebfont.svg#webfontc2vQD8pF') format('svg'); font-weight: normal; font-style: normal; } p { font-family: MySuperWebFont, Verdana, Arial, sans; }
  • 80. Sfruttare il “cascade” /* ---- layout ---- */ margin: 0px; padding: 0px; /* ---- formatting ---- */ font-family: Helvetica, Arial, sans-serif; font-size: 16px; color: #333333; background: #E4E4E4 url(xxx.png) repeat-x top left; border: 10px solid #FFFFFF; /* ---- css3 ---- */ background-image: -webkit-gradient(linear, 0 0, 0 100%, from(rgba), to(rgba)); background-image: -moz-linear-gradient(rgba, rgba); -webkit-background-size: 1200px 375px; -moz-background-size: 1200px 375px; -webkit-border-radius: 10px; -moz-border-radius: 10px; border-radius: 10px;
  • 81. Sfruttare il “cascade” /* ---- layout ---- */ margin: 0px; padding: 0px; /* ---- formatting ---- */ font-family: Helvetica, Arial, sans-serif; font-size: 16px; color: #333333; background: #E4E4E4 url(xxx.png) repeat-x top left; border: 10px solid #FFFFFF; /* ---- css3 ---- */ background-image: -webkit-gradient(linear, 0 0, 0 100%, from(rgba), to(rgba)); background-image: -moz-linear-gradient(rgba, rgba); -webkit-background-size: 1200px 375px; -moz-background-size: 1200px 375px; -webkit-border-radius: 10px; -moz-border-radius: 10px; border-radius: 10px;
  • 82. NoSQL Day (Brescia - 25 marzo 2011) Rif: [23]
  • 84. HTML5, la piattaforma “It's taken 20 years because the underlying standards had to evolve from the proprietary Mac and Windows platforms. But they have both adopted HTML5 as a future direction. So that means in future a lot of apps will be running in HTML5 in both mobile and non-mobile form” Eric Schmidt - CEO Google Inc.
  • 85. Grazie per l’attenzione. Cristiano Rastelli www.didoo.net
  • 87. Links [1] http://www.w3.org/TR/html5/ [2] http://dev.w3.org/html5/spec/ [3] http://www.whatwg.org/html/ [4] http://www.brucelawson.co.uk/2010/meet-newt-new-exciting-web-technologies/ [5] http://robertnyman.com/2009/10/14/an-introduction-to-html5/ [6] http://caniuse.com/ [7] http://www.html5test.com/ [8] http://www.findmebyip.com/ [9] http://wiki.whatwg.org/wiki/Implementations_in_Web_browsers [10] http://en.wikipedia.org/wiki/Comparison_of_layout_engines_(HTML5) [11] http://www.w3.org/html/logo/ [12] http://www.webstandards.org/2011/01/18/regarding-the-html5-logo/ [13] http://adactio.com/journal/4289/ [14] http://blog.whatwg.org/html-is-the-new-html5 [15] http://www.zeldman.com/2011/01/27/html5-vs-html/ [16] http://www.456bereastreet.com/archive/201101/html_beyond_html5/ [17] http://www.apple.com/hotnews/thoughts-on-flash/ [18] http://www.apple.com/html5/ [19] http://www.html5rocks.com/
  • 88. Links [20] http://ie.microsoft.com/testdrive/ [21] http://en.wiktionary.org/wiki/divitis [22] http://nate.koechley.com/blog/2006/12/15/divitis_and_correct_div_usage/ [23] http://nosqlday.it » http://diveintohtml5.org/ » http://html5doctor.com/ » http://html5demos.com/ » http://html5gallery.com/ » http://html5test.com/ » http://www.html5rocks.com/