Demonstration Of Input Fields With Labels
This section demonstrates a WWW form that uses the label element to
markup the label text associated with an input element. This tag is currently
supported by William Perry's excellent Emacs-based W3 browser.
Form Encoding
The form is encoded as shown below.
<FORM ACTION="">
<group>
<caption>How much coffee would you like to order?</caption>
<INPUT id=r1 TYPE="radio" NAME="A0" VALUE="5"> <label for=r1>5 pounds</label>
<INPUT id=r2 TYPE="radio" NAME="A0" VALUE="3"> <label for=r2>3 pounds</label>
<INPUT id=r3 TYPE="radio" NAME="A0" VALUE="2"> <label for=r3>2 pounds</label>
</group>
</FORM>
Possible Visual Rendering
Here is a possible visual rendering of the above form,
with option 5 pounds pressed.
How much coffee would you like to order?
(*) 5 pounds ( ) 3 pounds ( ) 2 pounds
T. V. Raman
Email: raman@adobe.com
Last modified: Tue Feb 18 11:45:07 1997