Frames
can be used to divide the window into more sections, within which different
documents are loaded below is the HTML for this (
example).
<FRAMESET cols="20%,*">
<FRAME name="menu" src="htmlexamplea.htm">
<FRAME name="main" src="htmlexampleb.htm">
</FRAMESET>
|
Tag |
About |
|
<FRAMESET> |
Defines the start of a frameset |
|
<FRAME> |
Defines a frame |
The
<FRAMESET> tag can have the attributes: cols="percentage,*" for
columns or rows="percentage,*" for rows. E.g. <FRAMESET cols="25%,*">
(for
this) or <FRAMESET cols="15%,*,25%"> (for
this). The * tells the browser to use the rest of the window.
The
<FRAME> tag can have the attributes: name="frame name", src="path
to document to be loaded in that window", scrolling="yes, no or auto"
or border="number". E.g. <FRAME name="main" src="main.htm" border="1"
scrolling="auto">. The <FRAME> tags need to go in order to define
the individual frames from left to right.
You
can not have both rows and columns (e.g. <FRAMESET cols="25%,*" rows="50%,*">)
so you need to nestle framesets together. Below is an example of some
nestled framesets to produce this.
<FRAMESET cols="15%,*">
<FRAME name="menu" src="htmlexamplea.htm">
<FRAMESET rows="25%,*">
<FRAME name="menu2" src="htmlexamplec.htm">
<FRAME name="main" src="htmlexampleb.htm">
</FRAMESET>
</FRAMESET>