I have two suggestions. First, use a complete <!DOCTYPE> statement so that your pages will be rendered by all browsers in Standards Compliance Mode. Search on "doctype switch" and you'll find some good advice.
Second, this sounds like too much magic for a student test or quiz. I suspect that this code is ultimately going to be incorporated into a <form>, so why not use <select>s for the word choices. Something like:
Code:
A. What <select name="q1" size="1">
<option value="">(choose)</option>
<option value="was">was</option>
<option value="were">were</option>
</select> Greta doing yesterday? <br>
B. <select name="q2" size="1">
<option value="">(choose)</option>
<option value="He">He</option>
<option value="She">She</option>
<option value="They">They</option>
</select> was cleaning <select name="q3" size="1">
<option value="">(choose)</option>
<option value="his">his</option>
<option value="her">her</option>
<option value="their">their</option>
</select> apartment. <br>
Rick Trethewey
Rainbo Design
Bookmarks