HTML and CSS Reference
In-Depth Information
4.
Enter the following code:
<fieldset>
<legend>Your Info</legend>
5.
Place your cursor after the closing
</p>
tag that follows the code
<input type=”text”
name=”email” id=”email”>
and press Enter (Return).
6.
Enter the following code:
</fieldset>
<fieldset>
<legend>Your entry</legend>
7.
Place your cursor after the closing
</p>
tag that follows the final checkbox and press Enter
(Return).
8.
Enter the following code:
</fieldset>
9.
Save your file.
10.
In your browser, open
tpa_saturn.html
to view the rendered form with the fieldsets and
legends as shown in Figure 20-2.
FiGure 20-2