Page 98 - modular_v2.0_HTML&_CSS_Fb
P. 98

8                                                               FORMS IN HTML














                                     Your Aim

                                     to learn about:
                                          l    What is Form in HTML?       l    Using <INPUT/> Tag



                  We have seen various types of forms such as a registration form, login form and feedback form
                  on different websites. These forms are created by using HTML. Generally, a form is a collection
                  of different types of fields to take the input from a user. It replaces the paper-based forms used

                  earlier. Nowadays, most of the schools, universities and other commercial organisations use
                  online forms to submit or accept information. Different types of fields such as text boxes, check
                  boxes, radio buttons, drop-down menus and password are used  to accept different types of
                  information.

                     WHAT IS FORM IN HTML?

                  A 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 helps to design a form like textbox, radio buttons,
                  drop-down menus, checkboxes, password, list, select box, etc. while writing codes. Every form
                  must begin with a <FORM> tag, which can be typed inside the body of the HTML document.
                  The <FORM> Tag


                  The <FORM> tag is used to create the form boundary on the web page. It is a container
                  tag. All the other form related tags such as <INPUT/>, <SELECT> and <TEXTAREA> are used
                  inside the opening <FORM> and closing </FORM> tags. The syntax to use the <FORM> tag
                  is as follows:

                              <FORM> Form Elements </FORM>
                  The <FORM> tag has the two main attributes which are:

                       ACTION: This attribute is used to specify the action that will take place when we submit the form
                       values. It takes the URL of another web page or an e-mail address to receive the information.
                       METHOD: It specifies the type of method form will use to accept the values entered into
                       form fields. The most commonly used values for this attribute are POST and GET.


                   96
                          Touchpad MODULAR (Ver. 2.0)
   93   94   95   96   97   98   99   100   101   102   103