Frame
] ] ] ]
Frame Setup = <FRAMESET>…</FRAMESET> |
Each block of frame definitions are surrounded by these tags. |
Frame = <FRAME> |
This tag is used to define a single frame and must be put inside the <FRAMESET> element. |
<FRAMESET> |
<FRAME>… |
<FRAME>… |
<FRAME>… |
</FRAMESET> |
<FRAMESET>…</FRAMESET>
Column
To indicate the number of columns, the number of values defined is used to serve this function. Regarding the width of each column, use <FRAMESET COLS= "number in pixels of the first column, number in pixels of the second column, number in pixels of the third column,…"> or <FRAMESET COLS="number% of the first column, number% of the second column, number% of the third column,…">
In addition, if you want to define a proportional division of space, use asterisk (*). Each asterisk is used for one piece of the overall space.
Example:
<FRAMESET COLS="*,2*,3*">
Here is an example of three columns. The first column would get 1/6 of the total width of the window, the second one would get 2/6 (or 1/3) and the last one would get 3/6 (or 1/2).
Besides, you can use all three in a single definition.
Example:
<FRAMESET COLS="50, 25%, *, 2*">
Here is an example of four columns. The first column is assigned to have an absolute width of 50 pixels, the second one gets 25% of the width of the entire display window, the third one gets 1/3 of what’s left and the last one gets the other 2/3.
Row
To specify the number of rows, the number of values defined is used to serve this function. Regarding the height of each row, use <FRAMESET ROWS= "number in pixels of the first row, number in pixels of the second row, number in pixels of the third row,…"> or <FRAMESET ROWS="number% of the first row, number% of the second row, number% of the third row,…">
In addition, you can define a proportional division of space by using asterisk (*).
Example:
<FRAMESET ROWS="*,2*,*">
Here is an example of three rows. The first and last rows would get 1/4 of the screen height and the middle row takes up half.
Also, it’s possible to use all three in a single definition for rows.
<FRAME>
Source
To define the URL of the content of your frame, use <FRAME SRC="URL">.
Name
To assign a name to a frame, use <FRAME NAME="name">.
Noresize
To keep users from resizing your frames, use <FRAME NORESIZE>. Usually, using this command in a single frame is enough to keep users from resizing all the frames on the screen.
Anyway, if you want to provide an alternative web page for browsers without frame capability, use <NOFRAMES>…</NOFRAMES>. Whatever you place between these tags will appear on browsers without frame whereas those with frames will throw it away.