Name
<input type=radio> — NN: 2, 3, 4 • MSIE: 2, 3, 4, 5 • HTML 4 • WebTV • Opera3
Synopsis
<input type=radio>
Within a <form>, 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
checkedCauses the radio button to be in the “on” state when the form is initially displayed.
name=textSpecifies the name of the parameter to be passed to the forms-processing application if this element is selected (required).
value=textSpecifies the value of the parameter to be passed on to the forms-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