150 likes | 278 Views
HTML 5. Giuseppe Attardi Università di Pisa. Slides from Lachlan Hunt. HTML5 in 1 Slide. Get started: http://www.alistapart.com/articles/previewofhtml5 http://diveintohtml5.org DOCTYPE: <! doctype html> NEW TAGS <header> <footer> < nav > <article> <section> <aside>
E N D
HTML 5 Giuseppe Attardi Universitàdi Pisa Slides from Lachlan Hunt
HTML5 in 1 Slide Get started: http://www.alistapart.com/articles/previewofhtml5 http://diveintohtml5.org DOCTYPE: <!doctype html> NEW TAGS <header> <footer> <nav> <article> <section> <aside> (But IE 6,7--even IE 8!—doesn't support styling these tags.) AUDIO/VIDEO <audio> <video> (But then the codecs need to work, sometimes ogg, sometimes mp3…) FEATURES localStorage New input types (great for mobile, see http://diveintohtml5.org/forms.html ) Modernizrhttp://www.modernizr.com
<header> <nav> <article> <aside> <footer>
<time> <figure> <legend> <meter>
<h1> <section> <h1> <h1>
Element Implementations • No native support, but can be styled with CSS in • Opera • Firefox 3.0 • Safari • IE 6 and 7 using simple createElement() hack
Video • Native video support in browsers • DOM APIs for providing custom interfaces • No more dependence upon Flash
Video Implementations • Opera (OggTheora) • Safari (All QuickTime formats) • Firefox (OggTheora)
Canvas • Dynamically draw graphics and text • Graphics-oriented DOM APIs
Canvas Implementations • Opera • Firefox • Safari • IE 6+ using ExplorerCanvas script