Page 83 - Trackpad_V4.0_C8_Flipbook
P. 83

Experiential Learning                                                            Survey


                    Create a school login page that requires user name and password from the user. Add relevant fields for
                    sign up also.





                            Quick Quiz

                  1.  Which HTML tag is used to create a form in HTML5?

                             a. <FORM>                                           b. <OUTPUT>

                  2.  Which HTML tag is used to create text input fields within a form?

                             a. <SRC>                                            b. <INPUT>

                  3.  Which HTML tag is used to create a multi-line text input area within a form?

                             a. <SELECT>                                         b. <TEXTAREA>




                              Recap


                              The <FORM> tag is used to create the form boundary on the web page.
                               The <INPUT> tag is used to create the controls or fields to take input from the user in the form of
                            text, selection and click.

                              The <SELECT> tag with the <OPTION> tag allows us to create a drop-down list.
                              The <TEXTAREA> tag is used to create a multiline text box that can accept long text values.


                                                   Assess Yourself


                        Choose the correct option.


                        1.  What is the purpose of the action attribute in a form tag?

                                   a. It specifies the method for submitting the form data.

                                   b. It specifies the URL where the form data should be sent.

                                   c. It defines the input elements within the form.

                                   d. It controls the layout of the form.

                        2.  Which input type is used for entering a single line of text in a form?

                                   a. text                                       b. password

                                   c. radio                                      d. checkbox





                                                                                                 Forms in HTML5    81
   78   79   80   81   82   83   84   85   86   87   88