“We're betting big on HTML 5.”— Vic Gundotra, Google
“The world is moving to HTML5.”— Steve Jobs, Apple
“The future of the web is HTML5.”— Dean Hachamovitch, Microsoft
"... it's a little too early to deploy it [HTML5] because we're running into interoperability issues ..."
"I don't think it's ready for production yet,"
"The real problem is can we make [HTML5] work across browsers and at the moment, that is not the case."
<!DOCTYPE html PUBLIC
"-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<!DOCTYPE html>
<meta
http-equiv="content-type" content="text/html;
charset=utf-8">
<meta charset="utf-8">
<!DOCTYPE html>
<meta charset="utf-8">
<title> Hello </title>
<p> World Wide Web </p>
<html> <head> <body>
tags?
<br/>
<embed/>
<hr/>
<img/>
<input/>
<link/>
<meta/>
<img src=photo1.jpg>
→ <img src="photo1.jpg"/>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"/>
<title> ... </title>
</head>
<body> ... </body>
</html>
<table>
<tbody>
<tr>
<td> ... </td>
</tr>
</tbody>
</table>
<em> <strong>
<b> <i> <br> <hr> <s> <small>
<iframe> target <li value> start
<embed>
<section>
- thematic grouping of content
<header>
- intro/nav/headings<nav>
- navigation links<footer>
- info about section, author, copyright<article>
- self-contained post, news, comment
<section>
<aside>
- tangential content, side comments<hgroup>
- related multilevel headings<article><div class="article">
...</div><article>
...
.article { /* article styling here */ }
<article><div class="article hentry">
...</div><article>
<div class="hgroup"><hgroup>
...</hgroup></div>
<audio src></audio>
- like img for sound
<video src></video>
- video plugin alternative
<source src>
- publish H.264 and Ogg (or VP8)
<video controls>
<source src="http://example.com/vid.mp4">
<source src="http://example.com/vid.ogv">
<object data="http://example.com/vid.mp4">
<embed src="http://example.com/vid.swf">
</object>
</video>
<object>
<embed>
for older browser fallback<canvas>
- drawing with javascript
<meter> <input type="range"> <progress>
<input type="search">
autofocus
attribute - upon page loadplaceholder
attribute - suggestionsrequired
attribute - for form submissionImplementors should be aware that this specification is not stable. Implementors who are not taking part in the discussions are likely to find the specification changing out from under them in incompatible ways.
<hgroup> <footer>
.incremental {opacity: 0;}
.incremental,.current {
-moz-transition: opacity .5s linear;
-webkit-transition: opacity .5s linear;
-o-transition: opacity .5s linear;
}