Page 355 - Web Applications (803) Class 11
P. 355

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  353
   350   351   352   353   354   355   356   357   358   359   360