Hello, I'm writing a small book in HTML5 which is divided into chapters and sections like this:
chapter1.html - intro to chapter 1
chapter1section1.html - section 1.1
chapter1section2.html - section 1.2
chapter2.html - intro to chapter 2
chapter2section1.html - section 2.1
chapter2section2.html - section 2.2
As soon as I started writing sections I wondered about the best way to mark up my documents. I'm in doubt about the use of the <section> element in this particular case (maybe it's better to divide chapters into articles?).
I'm also hesitant about wrapping all content inside a <section>. I'm doing it so I can arrange them easily. I decided to do this after reading some comment in the HTML5 spec draft.
It's possible I end up putting the whole booke inside one file and it seems to me this structure would make this easier. What do you think?
Thanks in advanced!
chapter1.html:
<header>
<nav>
<ol>
<li><a href="index.html">Start</a></li>
</ol>
</nav>
</header>
<section>
<h1>This is chapter 1</h1>
<p>Some content as introduction to chapter 1...</p>
</section>
chapter1section1.html
<header>
<nav>
<ol>
<li><a href="chapter1.html">Up</a></li>
<li><a href="index.html">Start</a></li>
</ol>
</nav>
</header>
<section>
<h1>This is section 1.1</h1>
<p>Some introductory content to section 1.1...</p>
<section>
<h1>This is subsection 1.1.1</h1>
<p>Some content...</p>
</section>
</section>