HTML5 , . . , , , , .
CSS-. , , , :
section, article, header, footer, nav, aside, hgroup {
display: block;
}
. Internet Explorer . , JavaScript, :
document.createElement('section');
(Remy Sharp), JavaScript, , HTML5. , Internet Explorer:
<!-[if IE]>
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js">
</script>
<![endif]->
.
HTML5, .
(Geoffrey Sneddon) -, HTML5 (http://bkaprt.com/html5/9)[14].
, HTML5, , h1, CSS-, , :
h1 {
font-size: 2.4em;
}
h2, section h1, article h1, aside h1 {
font-size: 1.8em;
}
h3, section h2, article h2, aside h2,
section section h1, section article h1, section aside h1,
article section h1, article article h1, article aside h1,
aside section h1, aside article h1, aside aside h1 {
font-size: 1.6em;
}
, . , HTML5 . , .
Aria
HTML5 . , , , nav. , .
. , .
|
|
, ARIA ( -, Accessible Rich Internet Applications).
ARIA Ajax- -. ARIA .
ARIA role. role="search" , role="banner" role="contentinfo" . ARIA : http://bkaprt.com/html5/10[15].
HTML 4.01, XHTML 1.0 , , .
ARIA HTML5, ARIA, .
role . . :
header[role="banner"] { }
footer[role="contentinfo"] { }
, -. , .
(Henri Sivonen) HTML5. : http://validator.nu/.
, W3C (http://validator.w3.org/). , HTML5.
HTML5, , JavaScript.
Modernizr JavaScript-, , audio, video canvas (http:// www.modernizr.com/).
JavaScript Modernizr. , , :
if (!Modernizr.inputtypes.color) {
// JavaScript.
}
Modernizr , Internet Explorer, Modernizr, .