Contact Number
Email Address

frame

frame

Definition and Usage

The <frame> tag defines one particular window (frame) within a <frameset>. Each <frame> in a <frameset> can have different attributes, such as border, scrolling, the ability to resize, etc. HTML frames are used to divide your browser window into multiple sections where each section can load a separate HTML document. A collection of frames in the browser window is known as a frameset. The window is divided into frames in a similar way the tables are organized: into rows and columns. An HTML document that describes frame layout has a different makeup than an HTML document without frames. A standard document has one head section and one body. A frameset document has a head, and a frameset in place of the body The frameset section of a document specifies the layout of views in the main user agent window.

Creating Frames

To use frames on a page we use <frameset> tag instead of <body> tag. The <frameset> tag defines how to divide the window into frames. The rows attribute of <frameset> tag defines horizontal frames and cols attribute defines vertical frames. Each frame is indicated by <frame> tag and it defines which HTML document shall open into the frame. Syntax <frame src="URL">; XHTML:<frame src="URL" />