HTML and CSS Reference
In-Depth Information
There are two other option button groups that Alice wants in the survey form: one to
find out whether the customer's order was delivered correctly, and the other to find out if
the food was presented hot. You'll add these option button groups now.
To add the remaining option button groups:
1. Return to the survey.htm file in your text editor.
2. Directly below the fieldset element for the serviceFriendly field, add the fol-
lowing HTML code (see Figure 6-40):
<label>Was your order correct?</label>
<fieldset class=”optionGroup”>
<label for=”oYes”>Yes</label>
<input type=”radio” name=”orderCorrect” id=”oYes”
value=”yes” />
<label for=”oNo”>No</label>
<input type=”radio” name=”orderCorrect” id=”oNo”
value=”no” />
</fieldset>
<label>Was your food hot?</label>
<fieldset class=”optionGroup”>
<label for=”hotYes”>Yes</label>
<input type=”radio” name=”foodHot” id=”hotYes”
value=”yes” />
<label for=”hotNo”>No</label>
<input type=”radio” name=”foodHot” id=”hotNo”
value=”no” />
</fieldset>
figure 6-40
Option button groups for the ordercorrect and foodHot fields
field set for the
orderCor r ect field
field set for the
foodHot field
Search WWH ::




Custom Search