KnowledgeBoat Logo
|

Computer Applications

"Radio buttons let a user select one of a limited number of choices". Give an example showing the use of a radio button in HTML forms.

HTML Advanced Features

4 Likes

Answer

An example showing the use of a radio button in HTML form is as follows:

<HTML>
<BODY>
<FORM>
Gender :
<BR>
<INPUT TYPE = "RADIO" ID = "R1" NAME = "GENDER" VALUE = "MALE" CHECKED/>
<LABEL FOR = "R1"> Male </LABEL> 
<BR>
<INPUT TYPE = "RADIO" ID = "R2" NAME = "GENDER" VALUE = "FEMALE" />
<LABEL FOR = "R2"> Female </LABEL> 
<BR>
<INPUT TYPE = "SUBMIT" NAME = "Process Order" VALUE = "Submit" /> 
<INPUT TYPE = "RESET" NAME = "Clear" VALUE = "Reset" /> 
</FORM>
</BODY>
</HTML>

Answered By

2 Likes


Related Questions