KnowledgeBoat Logo
|

Computer Applications

Illustrate the use of the radio button input type on an HTML form with an appropriate code and the corresponding output.

HTML Intro

10 Likes

Answer

HTML code for radio button 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> 
</FORM>
</BODY>
</HTML>
Output
Gender :


Answered By

9 Likes


Related Questions