Mark-up example for Checkpoint 12.3:
use of FIELDSET and LEGEND


And the markup to group (FIELDSET) and explain (LEGEND) the groups is:

<FIELDSET> <LEGEND> Select your options </LEGEND>
<FIELDSET> <LEGEND>Engine/Powertrain packages </LEGEND><BR>
<INPUT TYPE="RADIO" NAME="power" VALUE="4cyl" TABINDEX="4"> 4 cylinder<BR>
<INPUT TYPE="RADIO" NAME="power" VALUE="6cyl"> 6 cylinder<BR>
<INPUT TYPE="RADIO" NAME="power" VALUE="6awd"> 6 cylinder, all wheel drive
</FIELDSET>
</FIELDSET>

Please note that this code example only creates a part of the example on the previous page. However, all the important features are shown here.


Return to Example for Checkpoint 12.3
Copyright © 2000 W3C