Page 188 - Webapplication11_C11_Flipbook
P. 188

2.14 FRAMES
              HTML frames divide your browser window into many portions, each of which can load a different HTML document. A
              frameset is a collection of frames in the browser window. In the same manner as tables are structured into rows and
              columns, the window is divided into frames.
              We use the <frameset> tag instead of the <body> tag to use frames on a page. The <frameset> tag specifies how the
              window will be divided into frames. Horizontal frames are defined by the rows attribute of the <frameset> element,
              whereas vertical frames are defined by the cols attribute. Each frame is identified by the <frame> tag, which specifies
              which HTML document will be displayed in the frame.
              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.15 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.

                186     Touchpad Web Applications-XI
   183   184   185   186   187   188   189   190   191   192   193