8. <section id=“magazine”>
<article>
<header>
<h1>Semantic Markup Rules!</h1>
<p>An overview of new elements</p>
</header>
<p>Lorem ipsum dolor set amet…</p>
<aside>For more details, see…</aside>
</article>
</section>
17. <video width="320" height="240” controls="controls">
<source src="movie.mp4" type="video/mp4" />
<source src="movie.ogg" type="video/ogg" />
Your browser does not support the video tag.
</video>
34. Looking to the Future…
HTML5 compatible
phones to top
1 billion
in
2013
Hinweis der Redaktion
WHATWG = Google, Apple, Mozilla, Opera (MS declined b/c lack of patent policy). Formed to move HTML forward while W3C was mired in XHTML hell until 2009
XHTML turned out to be a colossal waste of time, W3C finally abandoned in 2009WHATWG had been working on alternative that is now called HTML5 since 2004IE never recognized XHTML content type
* Large thanks to mobile (iphone) and chrome - implementations
Web spiders, robotsAccessibility (ARIA not mentioned much in this talk)AI – Siri exampleIf we’re going to make the web a platform for computers, need semantics
divitis had replaced tables of 1998Focus on replacing common patterns of divs with semantically meaningful tags
Also allows an aside and figcaption, for exampleRetains its document nature
Frames popular in enterprise software (PeopleSoft, Outlook Web Access) but caused many usability and accessiblity issued
Notice not xml conformant. It can be: autofocus=“true”Required and pattern didn’t work in my tests = test/index.html
Drag & drop with few enough characters I could fit it on a slide w/reasonable font sizeShows why it’s hard to separate HTML5 from the larger ecosystem (including JS)
TODO: What is controls?MP4 = IE, Chrome, SafariWebM = Firefox, Chrome, OperaOgg = Firefox, Chrome, Opera
Canvas – again hard to separate HTML elements from the JS ecosystem
Dev – create in text editor:* Can be created and edited with any text editorCan be searched, indexed, scripted, and compressedUser* Scalable and are zoomable (and the image can be zoomed without degradation)* can be printed with high quality at any resolution
Allows webappsUpdate comment to refresh cacheTied with local storage
Flip to boston globeAlso have orientation and color capabilities
Uses Upgrade header in HTTP
Simple api to get lat/long* On desktop, gives somewhat better resolution than picture indicates; can be quite accurate on a phone