HTML - Frames




HTML Frames

Html frames help to divide browser window into multiple section that ultimately help in arranging and defining the frame of your browser. It also enhances look and fill.

HTML Frames gives us a way to merge multiple HTML Documents in a single HTML Document. HTML Frames splits the browser window into multiple panes or rectangular sections, each pane can contain separate HTML Document.This division process is same as for the HTML Table.

HTML Frameset <frameset> element is used instead of HTML Body <body> tag to split the browser screen into multiple pane, and each pane is defined by HTML Frame <frame> element.

Example

<!DOCTYPE html>
<html>
<frameset cols="25%,*,25%">
  <frame src="frame_aa.htm">
  <frame src="frame_bb.htm">
  <frame src="frame_cc.htm">
</frameset>
</html>

Result

HTML Frameset Attributes

cols - This attribute specifies the number of columns in frameset along with their width separated by the comma.Width can be specified in percentage or pixels.

rows - This attribute specifies the number of rows in frameset along with their height separated by the comma.Height can be specified in percentage or pixels.

border - This attribute specifies the width of the border for the frames. Value “0” means no border.