What happened to XHTML 2.0 and how did HTML5 come about? What kind of new features (many already supported in modern browsers) are driving HTML5 adoption? HTML5 is the flavor of html you will be writing for the next 10 years. Time to get started!
1. HTML5 vs XHTML 2
The Future of Web Development
Ben MacNeill
User Interface Designer, eXtension
NC State University
May 26, 2010
http://www.slideshare.net/chillnc/
3. No really, it’s dead.
“Today the Director announces that
when the XHTML 2 Working Group
charter expires as scheduled at the
end of 2009, the charter will not be
renewed.”
- www.w3.org, July 2nd, 2009
7. HTML 4.01 XHTML 1.0
tag-for-tag identical, different syntax
8. Why XHTML
(in 1999)
• Emergence of web standards
• Browsers starting supporting CSS
• More structured markup was welcomed
• Easier to parse
• Extensible (SVG, MathML)
9. mime
type
http://www.flickr.com/photos/janlewandowski/3210986710/
10. content=
"text/html"
VS
content=
"application/xhtml+xml"
27. New Semantic
Elements
<section>
<header>
<footer>
<nav>
<article>
28. IE: Never Fails
to Disappoint
<style type="text/css">
article {display:block; border:1px solid red;}
</style>
...
<article>
<h1>Welcome to Initech</h1>
<p>This is your <span>first day</span>.</p>
</article>
• no styles, empty node
http://diveintohtml5.org/semantics.html#unknown-elements
29. The Hack
<script>
document.createElement("article");
</script>
• HTML5 enabling script:
http://remysharp.com/2009/01/07/html5-enabling-script/
• Works all the back to IE6
• just create it, don't have to insert into DOM
http://diveintohtml5.org/semantics.html#unknown-elements
30. Awesome New Form Elements
<input type="search"> for search boxes
<input type="number"> for spinboxes
<input type="range"> for sliders
<input type="color"> for color pickers
<input type="tel"> for phone numbers
<input type="url"> for web addresses
<input type="email"> for email addresses
<input type="date"> for calendar date pickers
<input type="time"> for timestamps
35. Offer HTML5 <video>
• CNN • NPR
• Reuters • The White House
• New York Times • Sports Illustrated
• Vimeo • Flickr
• Time • CBS
• ESPN • MSNBC
http://www.apple.com/ipad/ready-for-ipad/