Home / code / html

Frames.

Frames, this helps you divide your windows into independent parts.
Each frame will have its own HTML-page and the can work independent of each other.

<FRAMESET></FRAMESET>
This replaces the <BODY></BODY>-part.

You have the attributes COLS and ROWS.
<FRAMESET COLS="?"></FRAMESET>
<FRAMESET ROWS="?"></FRAMESET>

You replace the ? with the space you need in pixels or in percentage.
Like:
<FRAMESET COLS="25%,50%,25%"></FRAMESET>
<FRAMESET ROWS="100,240,*"></FRAMESET>

With the * the computer automatic fills it in. (depend on the size of the window).

The element <FRAME>.
<FRAME SRC="URL">
This defines 1 frame.

You can give that frame a name.
<FRAME SRC="URL" NAME="thenameoftheframe">
The name is used to link to the frame.

The marginwidth
<FRAME SRC="URL" MARGINWIDTH=?>
Gives the left- and right borderline.

The marginheight
<FRAME SRC="URL" MARGINHEIGHT=?>
Gives the top and bottom line.

The scrolling
<FRAME SRC="URL" SCROLLING="YES|NO|AUTO">
Here you can decide if there has to be a scrollbar.
AUTO is standard.

The re-size
<FRAME SRC="URL" NORESIZE>
With this the size of a frame can not be changed.

The frameborder
<FRAME SRC="URL"FRAMEBORDER="YES|NO">
This indicates if there is a border or not.
Yes is the standard value.

The framespacing
<FRAME SRC="URL"FRAMEBORDER="0">
This indicates the size of the border.
Set to 0 for none.

Noframes.
There are still a lot of browsers out there that do not support frames.
Anything between these tags is only seen by them.
<NOFRAMES></NOFRAMES>

 

TOP

Latest script:

 

Books: