Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Introduktion till webbutveckling HT12: föreläsning 10

Introduktion till webbutveckling HT12: föreläsning 10

For the Swedish university course Introduction to Web Development: .

(Published under a Creative Commons BY license.)

Fredrik Ohlin

October 23, 2012
Tweet

More Decks by Fredrik Ohlin

Other Decks in Technology

Transcript

  1. “HTML5 is a mess. It's also one of the most

    exciting technological advances perhaps ever.” —John Allsopp
  2. <section>    <h1>Forest  elephants</h1>      <section>      

     <h1>Introduction</h1>        <p>In  this  section,  we  discuss  forest  elephants.    </section>    <section>        <h1>Habitat</h1>        <p>Forest  elephants  do  not  live  in  trees  but  among  them.      </section>    <aside>        <p>advertising  block    </aside> </section> <footer>    <p>(c)  The  Example  company </footer>
  3. <div class=”header”> <div class=”footer”> <div class=”aside”> <div class=”nav”> <div class=”content”>

    <div class=”article”> <div class=”section”> <div class=”hgroup”> <div class=”section”> <div class=”dialog”> <p> etc... <div class=”figure”> <div class=”figcaption”> <img /> <div class=”details”> <div class=”summary”> <p> etc...
  4. <header> <footer> <aside> <nav> <div class=”content”> <article> <section> <hgroup> <section>

    <dialog> <p> etc... <figure> <figcaption> <img /> <details> <summary> <p> etc...
  5. “harmful” <html> <head> <style>blah { color: red; }</style> </head> <body>

    <blah>Hello!/</blah> </body> </html> http://ejohn.org/blog/html5-shiv/
  6. “harmful” <html> <head> <style>blah { color: red; }</style> <script> document.createElement("blah")

    </script> </head> <body> <blah>Hello!/</blah> </body> </html> http://ejohn.org/blog/html5-shiv/
  7. “Remember: due to the no-JS IE6-8 issues, using HTML5 elements

    for accessibility is like punching one kid to entertain another one.”
  8. We’ve been bending the float property to handle layout for

    years now. We’ve gured out how to get by with what we have, but a real layout engine is absolutely a necessity. That said, two of the three new CSS layout modules have yet to be implemented by any browser. They’re still being worked CRITICAL NON CRITICAL Branding Interaction Usability Visual Rewards Accessibility Feedback Layout Movement 1.01: A website’s visual experience can be grouped into critical and non-critical categories. The latter are where CSS can be applied today.
  9. 1.02: CSS properties and the browsers that support them. PROPERTY

    SUPPORTED IN border-radius + + + . + beta text-shadow . + + . + . + box-shadow + + . + . + beta Multiple background images . + + . + . + beta opacity . + + . + + beta RGBA . + + + + beta
  10. How vendor pre xes work WebKit –webkit– Mozilla –moz– Opera

    –o– Konqueror –khtml– Microsoft –ms– Chrome –chrome– 1.03: The most widely-used vendors and their associated pre xes.
  11. Torsdag — fokus användbarhet. Ta med exempel på något som

    gör webbsidor * enklare och * svårare att använda.