HyperTextMarkupLanguage

HTML Advanced Functions


| Home | Agenda | Next |

Input Fields - Continued

TYPE = "RADIO"
Optional: [VALUE, CHECKED]

Creates a list of radio button that allows the user to choose only one option. Radio button are grouped together by assigning them all the same NAME (but different VALUES).

Example:
        <FORM>
        <INPUT TYPE=radio NAME="animal" VALUE="cat">Cat
        <BR>
        <INPUT TYPE=radio NAME="animal" VALUE="dog" CHECKED>Dog
        <BR>
        <INPUT TYPE=radio NAME="animal" VALUE="horse">Horse
        </FORM>
VALUE: stores what will be returned in the variable when the box is checked
CHECKED: defines a radio button to be "pressed" when the form is first loaded
Cat
Dog
Horse

| Home | Agenda | Next |

T10D025