Sectioning content is content that defines the scope of headings and footers.
articleasidenavsectionEach sectioning content element potentially has a heading and an outline.
| Markup | Outline |
|---|---|
|
Foo
Bar
Baz
Qux
foobar
|
| Markup | Outline |
|---|---|
|
Foo
Bar
Baz
Qux
foobar
|
hgroupThe point of
hgroupis tomask anfrom the outline algorithm.h2element (that acts as a secondary title)
The point of hgroup is to mask all but the highest-ranking heading element within from the outline algorithm.
These elements can have their own outlines, but the sections and headings inside these elements do not contribute to the outlines of their ancestors.
| Markup | Outline |
|---|---|
|
Foo Bar Qux |
<style>
h1 { color: green; }
</style>
<h1>What colour am I?</h1>
<section>
<style>
h1 { color: red; }
</style>
<h1>What colour am I?</h1>
</section>
<style>
h1 { color: green; }
</style>
<h1>What colour am I?</h1>
<section>
<style scoped>
h1 { color: red; }
</style>
<h1>What colour am I?</h1>
</section>
article, aside, details,
figure, footer, header,
hgroup, nav, section {
display: block;
}
document.createElement('article');
document.createElement('aside');
document.createElement('details');
…<!--[if IE]>
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js">
</script>
<![endif]-->
rolesclass names + ARIA rolesroles