I want to write a simple quiz using HTML5.
So each question might have a format like the code below. The problem is I'm not sure how to semantically structure this when including the question title. I'm wondering if prior to each ul
I should have the question as an h1
-h6
element or if each question should be boxed in with its own section
element … or … if the entire quiz should have it own section
element etc.
I read a similar question here but that question is in relation to a one-off unordered list when the quiz below is a group of unordered lists.
<!-- How to add question titles semantically? -->
<ul>
<li><input type="radio"> Answer1 </li>
<li><input type="radio"> Answer2 </li>
<li><input type="radio"> Answer3 </li>
</ul>
<ul>
<li><input type="radio"> Answer1 </li>
<li><input type="radio"> Answer2 </li>
<li><input type="radio"> Answer3 </li>
</ul>
<ul>
<li><input type="radio"> Answer1 </li>
<li><input type="radio"> Answer2 </li>
<li><input type="radio"> Answer3 </li>
</ul>