HTML frameset Tag-
A framed document divides a browser window into multiple panes, or smaller window frames. Each frame may contain a different document. A frame is an independent scrolling region, or window, of a webpage. The <frameset> tag in HTML is used to define the frameset. The <frameset> element contains one or more frame elements. It is used to specify the number of rows and columns in frameset with their pixel of spaces. Each element can hold a separate document.
The contents of one frame can be manipulated, or linked, to the contents of another. This enables designers to build sophisticated interfaces. For example, one frame can contain links that produce a result in another frame.
The <frameset> tag defines how to divide the window into frames. Each frameset defines a set of rows or columns. The values of the rows/columns indicate the amount of screen area each row/column will occupy.
Note: The <frameset> tag is not supported in HTML5.
Syntax-
<frameset cols = "pixels or %">
Example-
<frameset cols="25%,75%">
<frame src="frame_a.htm">
<frame src="frame_b.htm">
</frameset>
Frame Tag Description-
<frameset> : Defines a set of frames
<frame> : Defines a sub window (a frame)
<noframes> : Defines a noframes section for browsers that do not handle frames
<iframe> : Defines an inline sub window (frame)
Attributes: The list of frameset attributes-
cols: The cols attribute is used to create vertical frames in a web browser. This attribute is basically used to define the no. of columns and their size inside the frameset tag.
rows: The rows attribute is used to create horizontal frames in the web browser. This attribute is used to define the no. of rows and their size inside the frameset tag.
border: This attribute of frameset tag defines the width of the border of each frame in pixels. Zero value is used for no border.
Frameborder: This attribute of frameset tag is used to specify whether a three-dimensional border should be displayed between the frames or not for this use two values 0 and 1, where 0 defines no border and value 1 signifies for yes there will be a border.
Framespacing: This attribute of frameset tag is used to specify the amount of spacing between the frames in a frameset. This can take any integer value as a parameter which basically denotes the value in pixel.
Examples illustrate the <frameset> element in HTML
0 Comments