Page 73 - Code_GPT_Class_8
P. 73

That's a good idea. I will write the code in
                                                                                    HTML to add a form.





















                  Can we add a form for the user
                  to order what they want to buy?



                  Test Your Knowledge                                                       21 st  Century   #Information Literacy
                                                                                                Skills
                   Name any two attributes of the following tags:

                   1.  <A>

                   2.  <IMG>





                 We have seen various types of forms, such as a registration form, a login form, and a feedback form on
                 different websites. These forms are created using HTML5. Generally, a form is a collection of different
                 types of fields taking input from a user. Online forms have replaced paper-based forms. Nowadays, most
                 schools, universities, and commercial organisations use online forms to submit or accept information.
                 These forms incorporate different  types of  fields, such  as text boxes, check boxes, radio buttons,

                 drop-down menus and passwords, etc., to collect different types of information.

                 WHAT IS A FORM IN HTML5?


                 An HTML5 form is an interface of a web page that enables the user to enter data (such as names, e-mail

                 addresses, passwords, phone numbers, etc.) to be sent to the server for processing. While writing codes,
                 there are various form elements that help in designing a form, like textboxes, radio buttons, drop-down
                 menus, checkboxes, passwords, lists, comboboxes, etc. Every form must begin with a <FORM> tag,
                 which is placed inside the body of the HTML5 document.


                 THE <FORM> TAG


                 The <FORM> tag is used to create the form boundary on a web page. It is a container tag. All other
                 form related tags are placed inside the opening <FORM> and closing </FORM> tags.




                                                                                                 Forms in HTML5    71
   68   69   70   71   72   73   74   75   76   77   78