Name
<input type=radio> — NN 2, 3, 4, 6 MSIE 2,3, 4, 5.5, 6 HTML 4.01 WebTV Opera5
Synopsis
<input type=radio> (no end tag)
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 are “off.” This makes them different from checkboxes, which allow multiple choices to be selected within a group. Only data from the “on” radio button is sent when the form is submitted.
Attributes
-
checked Causes the radio button to be in the “on” state when the form is initially displayed.
-
name=text Required. Specifies the name of the control to be passed to the form-processing application if this element is selected.
-
value=text Required. Specifies the value of the parameter to be passed to the form-processing application.
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access