Page 399 - Webapplication11_C11_Flipbook
P. 399

</BODY>
                      </HTML>
                      Output:

















                   4.  Write an html code to create a student registration form.

                  Ans.  <SELECT>
                      <OPTION> Option 1
                      <OPTION> Option 2
                      <OPTION> Option N

                      </SELECT>
                       Let us create a student registration form by using form elements of HTML. The code to create the registration
                      form is as follows:

                      <HTML>
                      <HEAD>

                      <TITLE> Form </TITLE>
                      </HEAD>
                      <BODY BGCOLOR="lightyellow" TEXT="blue">
                      <CENTER>
                      <H1> Registration Form </H1>

                      </CENTER>
                      <HR>
                      <FORM>
                      Name : <INPUT TYPE="TEXT"> <BR><BR>

                      Father's Name : <INPUT TYPE="TEXT"> <BR><BR>
                      Age in Years : <INPUT TYPE="TEXT"> <BR><BR>
                      Gender  :  <INPUT  TYPE="RADIO"  NAME="gender">  Male  <INPUT  TYPE="RADIO"
                      NAME="gender"> Female  <BR> <BR>
                      Address : <TEXTAREA ROWS ="4" COLS = "80"> </TEXTAREA> <BR> <BR>
                      Hobbies: <BR>

                      <INPUT TYPE="CHECKBOX"> Playing Cricket <BR>
                      <INPUT TYPE="CHECKBOX"> Listening to Music <BR>
                      <INPUT TYPE="CHECKBOX"> Reading Books <BR>
                      <BR> <BR>


                                                                                                     Practical Work  397
   394   395   396   397   398   399   400   401   402   403   404