Developing With HTML5
Developing With HTML5
Lachlan Hunt
2007-08-03
?
WHATWG
The Web Hypertext Application Technology Working Group
WHATWG Goals
Well-Defined Behaviour
Avoid Needless Complexity
Handle Errors
Document Representations
HTML XHTML
5 5
text/html application/xhtml+xml
Document
DOM
Benefits of HTML
<div class="article">
<article>
<div <div
<nav> <div <section>
id="content"> <aside>
id="nav"> id="right">
<div <footer>
id="footer">
Dates and Times
Microformats datetime-design-pattern
<abbr class="datetime"
title="2007-08-02T23:30Z">
Fri, Aug 03 2007 at 09:30
</abbr>
Misusing the abbr element
Accessibility Issues
Dates and Times
<meter>60%</meter>
<meter>3/5</meter>
<meter>6 blocks used
(out of 10 total)</meter>
<meter value="0.6">Medium</meter>
Progress
<progress>Step 3 of 6</progress>
<progress>50% Complete</progress>
<progress value="0.5">
Half way!
</progress>
M
<datagrid>
<table>
<!-- Insert tabular data here... -->
</table>
</datagrid>
Embedded Content and
Multimedia
Canvas
<video src="movie.ogg"
id="video">...</video>
<button onclick="video.play();">
Play
</button>
DOM APIs
Server-Sent Events
<input type="datetime">
<input type="date">
<input type="time">
And more…
Form Controls: Numbers
<input type="number">
<input type="range">
Form Controls: Email and URIs
<input type="email">
<input type="url">
Form Controls: Combo Boxes
<input list="title-list">
<datalist id="title-list">
<option value="...">
</datalist>
Form Validation
Lachlan Hunt
http://lachy.id.au/
http://whatwg.org/
http://www.w3.org/html/