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.
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>
Related Questions
"Intellectual property rights are the legal property rights of people over their creation". Mention any two types of Intellectual property rights.
"Privacy is defined as the right to control what happens with your personal information". Mention two ways to limit your data exposure online.
Write the difference between the colspan and rowspan attributes of an HTML table and give one example of each.
Giving examples, write the difference between a text box and a drop-down list.