Page 151 - DCAP202_Fundamentals of Web Programming
P. 151

Fundamentals of Web Programming




                    Notes          Self Assessment

                                   Fill in the blanks:
                                   6.  A text field is placed on a web page using the <input> tag, with the ...............................
                                       attribute set with a value of “text”.

                                   7.  The HTML ............................ tag represents a group of introductory or navigational aids.

                                   12.4 Text Area

                                   Text areas are text fields that can span several lines.
                                   Unlike most other form fields, text areas are not defined with an <input> tag.

                                   Instead you enter a <textarea> tag where you want the text area to start and a closing </textarea>
                                   tag where you want the area to end.
                                   Everything written between these tags will be presented in the text area box.


                                          Example:
                                   <html>
                                   <head>
                                   <title>My  Page</title>
                                   </head>
                                   <body>
                                   <form  name=”myform”  action=”http://www.mydomain.com/myformhandler.cgi”
                                   method=”POST”>
                                   <div  align=”center”>
                                   This is outside the area<br><br>
                                   <textarea  cols=”40"  rows=”5"  name=”myname”>
                                   Now we are inside the area - which is nice.
                                   </textarea>
                                   <br><br>
                                   And now we are outside the area again.
                                   </div>
                                   </form>
                                   </body>
                                   </html>

                                   Self Assessment

                                   Fill in the blanks:

                                   8.  ................................. are text fields that can span several lines.
                                   9.  We use .............................. tag to end the text area.

                                   12.5 HTML Checkboxes

                                   Check boxes are used when you want to let the visitor select one or more options from a set of
                                   alternatives. If only one option is to be selected at a time you should use radio buttons instead.




          144                               LOVELY PROFESSIONAL UNIVERSITY
   146   147   148   149   150   151   152   153   154   155   156