In this tutorial you will be able to make radio buttons. Radio buttons only allow you to select one answer. They got there name from old cars which had preselected radio stations on them. You could only select one at a time. Interesting.
The < INPUT> Tag
      In this scenerio the Type property is RADIO
Radio Buttons take this form (almost like checked boxes):
< INPUT TYPE = "RADIO" Name = "samename" VALUE = "Value"> < INPUT TYPE = "RADIO" Name = "samename" VALUE = "Value"> < INPUT TYPE = "RADIO" Name = "samename" VALUE = "Value">
Properties of the radio button:
TYPE = "RADIO" CHECKED VALUE="value" Name = "name"
Cool!! I'm a Radio Button
Allows you to select a choice by default
Value sent to the CGI script
Name of the check box sent to the script
The Code
The Result
Which Food Is Your Favorite?
Pizza
Jerk Chicken
Ice Cream
FOR DEMONSTRATION ONLY!!
Looking at the code we notice:
We must put something after the radio button to let the visitor know what it is.
If you insert CHECKED into the Input tag it will select that choice by default.
The name always stays the same.
Don't forget to fill in The VALUE and NAME properties.
Rate Tutorial:
12345
Rated: 0 out of 5 Votes: 0
That is the end of Radio Buttons. Continue on to Dropdowns