“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
<!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> <small>
<iframe> target <li value> start
<embed>
<ruby>
- annotated East Asian text<rt>
- Ruby Text annotation
<rp>
- Ruby Parenthesis for fallback rendering...
<ruby>
漢 <rp>(</rp><rt>かん</rt><rp>)</rp>
字 <rp>(</rp><rt>じ</rt><rp>)</rp>
</ruby>
...
... 漢 (かん) 字 (じ) ...
...
<ruby>
漢 <rp>(</rp><rt>かん</rt><rp>)</rp>
字 <rp>(</rp><rt>じ</rt><rp>)</rp>
</ruby>
...
<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>
- alternative to video plugins
<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">
<embed src="http://example.com/vid.swf">
</video>
<embed>
for non-HTML5 browsers<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.