HTM61


BACK

DESCRIPTION

OUTPUT

SOURCE CODE






DESCRIPTION:

     Form with Radio buttons.


..Back to the top..



OUTPUT:


A Web page with a form using radio buttons

A form using radio buttons

Check your gender:
Male Female
Check your current college year
Freshman Sophomore Junior Senior
Do you plan to go to graduate school after graduation?
Yes No
Thank you. Come again!


..Back to the top..



SOURCE CODE:


<HTML>
<HEAD><TITLE>A Web page with a form using radio buttons</TITLE></HEAD>
<BODY>
<CENTER><H1><FONT COLOR = blue>A form using radio buttons</FONT></H1></CENTER>
<FORM NAME = myForm ACTION = mailto:[email protected] METHOD = post>
<FONT COLOR = red>Check your gender:</FONT><BR>
<INPUT TYPE = radio NAME = gender VALUE = male>Male
<INPUT TYPE = radio NAME = gender VALUE = female>Female
<BR><FONT COLOR = red>Check your current college year</FONT><BR>
<INPUT TYPE = radio NAME = year VALUE = first CHECKED>Freshman
<INPUT TYPE = radio NAME = year VALUE = second>Sophomore
<INPUT TYPE = radio NAME = year VALUE = third>Junior
<INPUT TYPE = radio NAME = year VALUE = fourth>Senior
<BR><FONT COLOR = red>Do you plan to go to graduate school after graduation?</FONT><BR>
<INPUT TYPE = radio NAME = gradSchool VALUE = fiction CHECKED>Yes
<INPUT TYPE = radio NAME = gradSchool VALUE = history>No
<BR><FONT COLOR = green>Thank you. Come again!</FONT><BR>
<INPUT TYPE = submit NAME = submitButton VALUE = Sent It>
<INPUT TYPE = reset NAME = resetButton VALUE = Clear It>
</FORM>
</BODY>
</HTML>


..Back to the top..