Page 242 - DCAP109_GRAPHIC_TOOLS
P. 242

Unit 10: Working of Web Designing




          Self Assessment                                                                       Notes

          Fill in the blanks:
          10.  A collection of frames in the browser window is known as a ……………………
          11.  The …………………… element indicates what goes in each frame of the frameset.

          12.  The frame where the new document is supposed to appear is called the ……………………
          10.5 Forms


          HTML forms are useful when we need to collect some data from the site visitor.


                 Example: Registration information: name, email address, credit card, etc.
          Form contain many elements  like text fields, text area fields, drop-down menus, radio buttons,
          checkboxes, etc. which are used to take information from the user. Let us now discuss them in
          detail.


                 Example: A
          <form action=”back-end script” method=”posting method”>
          form elements like input, textarea, etc.

          </form>
          10.5.1 Text Controls


          To take text as the input from user HTML provides us with 3 kinds of text controls: text fields,
          password fields and text areas.

          Text Fields

          There are actually three types of text input used on forms:
          z    Single-line text input controls.

          z    Password input controls
          z    Multi-line text input controls
          We will now elaborate on all of them.

          Single-line Text Input Controls

          They are created using an <input> element whose type attribute has a value of text.


                 Example: <form action=”/cgi-bin/hello_get.cgi” method=”get”> First name: <input
          type=”text” name=”first_name” /> <br> Last name: <input type=”text” name=”last_name” />
          <input type=”submit” value=”submit” /> </form>









                                           LOVELY PROFESSIONAL UNIVERSITY                                   235
   237   238   239   240   241   242   243   244   245   246   247