Page 62 - DCAP408_WEB_PROGRAMMING
P. 62
Web Programming
Notes Result: The result for the above html code is shown below:
2.7 Forms
HTML fill-out forms can be used for questionnaires, hotel reservations, order forms, data entry
and a wide variety of other applications. The form is specified as part of an HTML document. The
user fills in the form and then submits it. The user agent then sends the form’s contents as
designated by the FORM element.
Notes Typically, this is to an HTTP server, but you can also e-mail form contents for
asynchronous processing.
Forms are created by placing input fields within paragraphs, preformatted text, lists and tables.
This gives considerable flexibility in designing the layout of forms.
HTML 3.0 supports the following kinds of fields:
Simple text fields
Multi-line text fields
Radio buttons
Checkboxes
Range controls (sliders, or knobs)
Single/multiple choice menus
Scribble on image
File widgets for attaching files to forms.
Submit buttons for sending form contents
Reset buttons for resetting fields to their initial values
Hidden fields for book keeping information
It is expected that future revisions to HTML will add support for audio fields, multi-row entry of
database tables, and extending multi-line text fields to support a range of other data types, in
56 LOVELY PROFESSIONAL UNIVERSITY