Page 238 - DCAP109_GRAPHIC_TOOLS
P. 238

Unit 10: Working of Web Designing




                                                                                                Notes
                 Example: To create three vertical frames, use cols=”100, 500, 100".

               ™    A percentage of the browser window.

                 Example: To create three vertical frames, use cols=”10%, 80%, 10%”.

               ™    Using a wildcard symbol.

                 Example: To create three vertical frames, use cols=”10%, *,10%”. In this case wildcard
          takes remainder of the window.
               ™    As relative widths of the browser window.


                 Example: To create three vertical frames, use cols=”3*,2*,1*”.
          z    rows: attribute works just like the cols attribute and can take the same values, but it is used
               to specify the rows in the frameset.

                 Example: To create two horizontal frames, use rows=”10%, 90%”.

          You can specify the height of each row in the same way as explained above for columns.
          z    border: attribute specifies the width of the border of each frame in pixels.


                 Example: Border= “5.”
          z    frameborder: specifies whether a three-dimensional border should be displayed between
               frames. This attribute takes value either 1 (yes) or 0 (no).


                 Example: Frameborder= ”0” specifies no border.
          z    framespacing: specifies the amount of space between frames in a frameset. This can take
               any integer value.


                 Example: Framespacing= “10” means there should be 10 pixels spacing between each
          frames.

          Frame Tag

          The <frame> element indicates what goes in each frame of the frameset. It should always carry
          one attribute, src to indicate the page that should represent that frame.
          Frame tag consists of certain attributes. Some of them are described below:
          z    src: indicates the file that should be used in the frame. Its value can be any URL.


                 Example: src=”/html/top_frame.htm” will load an HTML file available in html directory.
          z    name: attribute allows you to give a name to a frame. It is used to indicate which frame a
               document should be loaded into.







                                           LOVELY PROFESSIONAL UNIVERSITY                                   231
   233   234   235   236   237   238   239   240   241   242   243