CBSE Class 10 Computer Applications
Question 19 of 31
Sample Question Paper — Question 7
Back to all questions 7
Question Question 17
"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.
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>