Page 175 - Web Applications (803) Class 11
P. 175

Example:

                 <!DOCTYPE html>
                 <html>
                 <head>
                 <title>HTML Frames</title>

                 </head>
                 <frameset cols = "20%,60%,20%">
                 <frame name = "first" src = "a1.html">
                 <frame name = "second" src = "a3.html">

                 <frame name = "third" src = "a7.html">
                 </frameset>
                 </html>


























                   2.12 FORMS IN HTML

                 HTML forms are used to collect information from the site visitors. Different types of forms can be created in HTML like
                 sign up/register, application form, feedback form, query from, etc. The three important components of a form in HTML
                 are: a <FORM> tag, the input controls and buttons.
                 The <FORM> tag is used to define a form in an HTML document. It is placed within the <BODY> tag. While designing
                 and building a form, we use different input elements that allow site visitors to type or select information. These
                 elements can include text fields, radio buttons, checkboxes, etc. All forms must include a Submit button. When the site
                 visitor fills in the information, then, it should be sent to the webserver for processing after the Submit button is clicked.
                 Creating Forms

                 The syntax for creating a form in HTML is:

                 <FORM NAME = "Name of the form” ACTION = "Script URL" METHOD = "GET/POST">
                 ...(Input Elements)
                 </FORM>
                    ACTION: This attribute specifies what action should be taken once the SUBMIT button is clicked by the user. The
                   Script URL specifies the location where the data collected by the form is submitted. It also produces a response in
                   return.

                                                                            Website Development using HTML and CSS   173
   170   171   172   173   174   175   176   177   178   179   180