I am writing the HTML for the Terms of Service page. I decided to use the ol element and the section element in consideration of the following two items.
- Each item must be guaranteed in order
- Each part can be cut out as a section
ol {
list-style: none;
}
<ol>
<li>
<section>
<h1>1.</h1>
</section>
</li>
<li>
<section>
<h1>2.</h1>
</section>
</li>
<li>
<section>
<h1>3.</h1>
</section>
</li>
</ol>
However, it was reviewed by an acquaintance to change it to only the section element. He said that if you write only the section element, the order is guaranteed.
<section>
<h1>1.</h1>
</section>
<section>
<h1>2.</h1>
</section>
<section>
<h1>3.</h1>
</section>
However, I (and the reviewer) did not find any basis for it in the HTML Standard.
Question
Does the
sectionelement alone guarantee that their order matters?Combining list and section elements is valid, but does this give a semantically inappropriate interpretation as "Terms of Service" page's markup?