[thelist] Markup for a Quiz

Maximillian Schwanekamp lists at neptunewebworks.com
Wed Dec 22 02:09:12 CST 2004


Hi Evolters,

I guess questions about xhtml markup are becoming kind of passé these 
days, but here goes anyway, since Google is not helping.  I have an exam 
generator application where question/answer content is stored in 
database, and php pours it into an xhtml template mold.  I'm trying to 
come up with the best markup for the form.  What I want is something 
like this:

Course Exam
Chapter 1
Some text about Chapter 1
   1. Question Text
         A. Some answer
         B. Some answer
         C. Some answer
   2. Another Question
         A. True
         B. False

Chapter 2
Some text about Chapter 2
   3. Third Question
         A. Some answer
         B. Some answer
etc.

In all cases, this will be multiple-choice, thus each question will have 
a radio button group for possible answers. The numbering and such all 
get plugged in at runtime from the database via php.  I usually have no 
trouble with forms, using fieldset and label to advantage.  What's 
tripping me up are the radio button groups.

Any suggestions as to the most (semantic|accessible|elegant) markup for 
this?  Alternatively, working examples of web-based tests/exams for 
comparison would be most welcome.

TIA!

-- 
Maximillian Von Schwanekamp
Dynamic Websites and E-Commerce
NeptuneWebworks.com <http://www.neptunewebworks.com/>
voice: 541-302-1438
fax: 208-730-6504



More information about the thelist mailing list