Frames are generated by three things:
<HTML> <HEAD> </HEAD> <FRAMESET> <NOFRAME> frame challenged browsers will see this </NOFRAME> <FRAME src="a url"> <FRAME src="another url"> </FRAMESET> </HTML>The frames that are complete HTML documents, each with their own colour styles and background images.
<FRAMESET [ROWS=valuelist] [COLS=valuelist]>... </FRAMESET>
The FRAMESET
tag can contain FRAME
,
NOFRAME
and other FRAMESET
tags.
It will be ignored if it is preceded by any tag that would normally
appear in the BODY
tag of a HTML document.
The ROWS and COLS attributes takes a comma separated list of values. These can be
A missing ROWS or COLS attribute is interpreted as a single row arbitrarily sized to fit.
number
This is the size of the dimension in pixels. Use of this type of number is strongly discouraged as the size of the browser window can and will change.
Fixed dimension frames are useful if they are used to display a graphic.
number%
This can be between 1 and 100 and expresses a percentage of the size of the browser window.
All percentages will be scaled (up or down) to fit the full dimensions of the browser screen.
[number]*
This is a relative sized frame. The number is optional expresses the weight given to the frame.
<FRAME
SRC="url"
[NAME={_blank|_self|_parent|_top|name}]
[MARGINWIDTH=pixels]
[MARGINHEIGHT=pixels]
[SCROLLING={yes|no|auto}]
[NORESIZE]
>
Defines a single frame in a frameset.
Documents within frames can also What you get then is nested frames! Colour styles and background imagery are also set on a per document basis within the frames.
some NAMEs are reserved
|
<NOFRAMES> Err sorry guys, this document can only be viewed by a frame viewer. for you unspeakable people without frames, here's a non-frames version of the document. .... </NOFRAMES>
This example compares Frame syntax and TABLE syntax, and will show the HTML source used to display the layout below.
<FRAMESET COLS="50%,50%"> <FRAMESET ROWS="50%,50%"> <FRAME SRC="cell.HTM"> <FRAME SRC="cell.HTM"> </FRAMESET> <FRAMESET ROWS="33%,33%,33%"> <FRAME SRC="cell.HTM"> <FRAME SRC="cell.HTM"> <FRAME SRC="cell.HTM"> </FRAMESET> </FRAMESET>
<A ..>
tag now has an extra parameter called
TARGET
<a href="url" TARGET="frame_name">...</a>As you might guess, this tells the browser to display the contents of the url in the named frame frame_name. This is the final piece of the puzzle to frames
If you have problems with this tag, make sure that the TARGET parameter is in CAPITALS.