HTML 5
<!DOCTYPE html>
- Specification
- whatwg.org/html5
- Mailing lists
- whatwg.org/mailing-list
- IRC channel
- irc://irc.freenode.org/whatwg
<!DOCTYPE html>
articleasidenavsectionh1,
h2,
h3,
h4,
h5,
h6
hgroup<hgroup>
<h3>The Diamond Age</h3>
<h4>or A Young Lady's
Illustrated Primer</h4>
</hgroup>headerfooterfigcaption, that is self-contained and is typically referenced as a single unit from the main flow of the document.audio<audio src="audio.mp3"
controls preload="none"
autoplay loop>
</audio>video<video width=360 height=240
controls poster="image.jpg">
<source src="movie.mp4"
type="video/mp4">
<source src="movie.ogg"
type="video/ogg">
</video>Use either the src attribute or source elements.
marktime<time datetime="2009-09-02">
September 2nd, 2009
</time>pubdate indicates the publication date of an article.input typessearch, tel, email, url, datetime, datetime-local, date, month, week, time
number<input type="number" min=0 max=10>range<input type="range" min=0 max=100>color<input type="color" value="#000000">styleThe type attribute is optional.
The optional scoped attribute indicates that the styles are intended just for the subtree rooted at the style element's parent element, as opposed to the whole document.
scriptThe type attribute is optional.
<meta charset="utf-8">