Name
<input type=radio> — NN: 2, 3, 4 - MSIE: 2, 3, 4, 5 - HTML 4 - WebTV - Opera3
Synopsis
<input type=radio>
Creates a radio button that can be turned on and off. When a group of radio buttons share the same control name, only one button within the group can be “on” at one time and all the others will be turned “off.” This makes them different from checkboxes, which allow multiple choices to be selected within a group.
Attributes
-
checked
Causes the radio button to be in the “on” state when the form is initially displayed.
-
name=
text
Specifies the name of the parameter to be passed on to the forms-processing application if this element is selected (required).
-
value=
text
Specifies the value of the parameter to be passed on to the forms-processing application.
Get Web Design in a Nutshell now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.