HTML and CSS Reference
In-Depth Information
To insert a field set:
◗
1.
Within the
form
element in the
survey.htm
file, insert the following two field sets,
as shown in Figure 6-8:
<fieldset id=”custInfo”>
</fieldset>
<fieldset id=”experience”>
</fieldset>
figure 6-8
inserting field sets
◗
2.
Save your changes to the file.
Every field set can contain a legend describing its contents. The syntax of the
legend
element is
<legend>
text
</legend>
where
text
is the text of the legend. The
legend
element can contain only text and no
other page elements. Based on Alice's sketch from Figure 6-2, you'll add the legend text
Customer Information
and
Share Your Experience at Red Ball Pizza
to the two field sets
you just created.
To insert legends for the field sets:
◗
1.
Within the first field set in the
survey.htm
file, insert the following
legend
element:
<legend>Customer Information</legend>
◗
2.
In the second field set, insert the following
legend
element:
<legend>Share Your Experience at Red Ball Pizza</legend>
Figure 6-9 highlights the revised text in the HTML file.