Choose a design and let our professionals help you build a successful website   - ITAcumens

Main Menu

HTML Frames

Started by VelMurugan, Apr 30, 2009, 08:41 PM

Previous topic - Next topic


HTML Frames

This section introduces the tags related to HTML frames: <frameset> and <frame>.


The <frameset> tag specifies the number of columns/rows on a frame. Note that you may embed a frameset within another frameset. The attributes include:

    * cols: Specifies the number of columns, as well as the width of each column. For example, cols="30%,70%" means that there will be two columns, the first column occupies 30% of the available space, while the second column occupies 70% of the available space.
    * rows: Specifies the number of rows, as well as the width of each row. For example, rows="40%,60%" means that there will be two rows, the first row occupies 40% of the available space, while the second row occupies 60% of the available space.


The <frame> tag specifies the properties within a particular frame. The attributes include:

    * src: This attribute specifies the HTML document source.
    * marginwidth: The margin on the left and right side of the frame.
    * marginheight: The margin on the top and bottom of the frame.
    * scrolling: This attribute specifies whether users may scroll up and down within this frame. The possible values are {yes|no|auto}.
    * noresize: This attribute specifies whether users may resize the frame.

Note that search engines typically do not like the use of the frames. Therefore, please consider using the frame feature carefully.

Example 1

<frameset cols="50%,50%">
  <frameset rows="100%">
    <frame src="frame1.html">
  <frameset rows="50%,50%">
    <frame src="frame2.html">
    <frame src="frame3.html">


In HTML, the frame allows you to multiple HTML files are now in the same window. For example, you can have a left frame right frame for the navigation and main content. Frame by creating a frameset page, and to identify each frame from this page. Frame of the HTML tag is used to specify each frame within the frameset. All tags nested frameset frame marker.