Skip to main content

Radio Button


Radio Button: Radio buttons allow the users to select
only one option.
<INPUT TYPE=“RADIO”>
Radio buttons have the following attributes:
§TYPE: radio.
§CHECKED: is blank or CHECKED as the initial
                        status. Only one radio button can be
                         checked
§NAME: is the name of the variable to be sent to the
                 CGI application.
§VALUE: usually has a set value.

Example on Radio Button


<HTML>
 <HEAD>
<TITLE>CheckBoxType</TITLE>
 </HEAD>
<BODY>
<h1> <font color=green>Please check one of the following</font></h1>

<FORM name="form3"  Action="url"  method="get">

<font color=red> Select Country: </font><BR>

jordan:<INPUT TYPE= "RADIO"  Name="country"  CHECKED><BR>

Yemen<INPUT TYPE="RADIO "  Name="country"><BR>

Qatar:<INPUT TYPE="RADIO"  Name="country"><BR> <BR>

<font color=blue>Select Language:</font><BR>

Arabic:<INPUT TYPE="RADIO"  Name="language"  CHECKED><BR>

 English:<INPUT TYPE=" RADIO " Name="language"><BR>

French:<INPUT TYPE=" RADIO "  Name="language"> <BR>
</FORM> 
</BODY>
</HTML>


Output





Comments