Page 104 - CA 165 ver 1.0 Class 10
P. 104

Lab Assignment ‘n Activity                        Inter-Disciplinary



                     Complete the following activities and tick on the circle.
                       Write HTML codes to obtain the following output:
                           Background  colour  of Question Page  and  Answer  Page  should be Aqua  and  Yellow
                            respectively.
                          Apply ordered and unordered list wherever required.
                          Use anchor tag to link pages with each other.

                                                Quiz                               Quiz

                                              Questions                           Answer

                                   1. Who is the Prime Minister of India?  1.   Shri Narendra Modi
                                   2. What is the Chemical Formula of Water?  2.   HO
                                                                             2
                                                                            2
                                                                               2
                                   3.   (a+b) 2                          3.   a+ b+ 2ab
                                      Answers                          Back
                    HTML FORM

                  An HTML form is an interface of a web page that facilitates the user to enter data (such as name, e-mail
                  address, password, phone number, etc.) that is to be sent to the server for further processing. There
                  are various form elements that help design a form through textbox, radio buttons, drop-down menus,
                  checkboxes, password, list, combo box, etc. while writing codes. Every form must begin with a <FORM>
                  tag, which can be typed inside the body of the HTML document. Syntax to create HTML form is as follows:

                    <HTML>
                    <BODY>
                    <FORM>

                    Form Elements
                    </FORM>
                    </BODY>
                    </HTML>
                  <INPUT> Element

                  <INPUT> element is the fundamental element of form. It is used to make fields to take input data from
                  the user. We can create different input fields to gather various kinds of information from a user. Syntax to
                  use the <INPUT> tag is as follows:

                    <INPUT TYPE=”    ”NAME=“     ”VALUE=“     ”ALIGN=“     ”SIZE=“     ”>
                  The <INPUT> tag has the following attributes:

                    TYPE attribute specifies the type of the form element such as text, radio, etc.
                    NAME attribute is a name given to a form element. This attribute is used to uniquely identify the
                     element in the form.

                    VALUE attribute is used to specify a default value to the control element.


                   102   Touchpad Computer Applications-X
   99   100   101   102   103   104   105   106   107   108   109