Page 244 - DCAP109_GRAPHIC_TOOLS
P. 244

Unit 10: Working of Web Designing




          Multiple-Line Text Input Controls                                                     Notes

          If you want to allow a visitor to your site to enter more than one line of text, you should create
          a multiple-line text input control using the <textarea> element.


                 Example:
          <form action=”/cgi-bin/hello_get.cgi” method=”get”>
          Description : <br />
          <textarea rows=”5" cols=”50" name=”description”>

          Enter description here...
          </textarea>
          <input type=”submit” value=”submit” />
          </form>






















          Following is the detail of above used attributes for <textarea> tag:

          z    name: The name of the control. This is used in the name/value pair that is sent to the
               server.

          z    rows: Indicates the number of rows of text area box.
          z    cols: Indicates the number of columns of text area box.

          Button

          You can create clickable button in HTML  using <input> tag. When you use this tag, the type of
          button you create is specified using the type attribute.
          The type attribute can take the following values:

          z    submit: This creates a button that automatically submits a form.
          z    reset: This creates a button that automatically resets form controls to their initial values.
          z    button: This creates a button that is used to trigger a client-side script when the user clicks
               that button.






                                           LOVELY PROFESSIONAL UNIVERSITY                                   237
   239   240   241   242   243   244   245   246   247   248   249