Page 75 - Plus V4 with Adobe class 8
P. 75

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.

                ENCTYPE: It is used to specify that how a web browser decodes the data before sending it to the

               server. This attribute can take any of the following values:

             •  application/x-www-form-urlencoded: It is used when you want to encode the URL.

              •  multipart/form-data: It is used when you want to upload a file or image.
              •  text/plain: It is used to send the data without any encoding.



                    Double Tap                                                 Century   #Information Literacy
                                                                                 21 st
                                                                                 Skills

                  1.  What is syntax to use the <FORM> tag?


                  2.  Name any two attributes of the <FORM> tag.






                 THE <INPUT> TAG

            The <INPUT> tag is one of the most important form elements. It is used to create the controls or fields
            to take input from the user in the form of text, selection, and click. The <INPUT> tag has the following
            attributes:

                TYPE: This attribute is used to specify the type of field we want to create. It takes one of the predefined
               values. The predefined values for this attribute are:

              •  TEXT: This value is used to create a text box field. A text box field is a one-line text input control.

                 The text is the default value of the TYPE attribute.
              •  RADIO: This value is used to create a radio button control. A radio button control is used to select

                 only one option from a set of options.

              •  CHECKBOX: This value is used to create a check box control. A check box control allows us to
                 select multiple options from a set of options.

              •  BUTTON: This value is used to create a action button control. An action button control is used to
                 perform an action on the click of it.

              •  SUBMIT: This value is used to create a submit button control. The submit button control is used to
                 submit all the entered values in form to the specified URL.

              •  RESET: This value is used to create a reset button control. The reset button control, when clicked,

                 clears all the values entered in the form fields.




                                                                                              #Forms in HTML5  73
   70   71   72   73   74   75   76   77   78   79   80