continue:   forms
back:   colours
sample

Frames

Frames or Subwindows

Somewhen, ca 1995 came up the need to combine content of webpages in a single window. An idea was born soon, the realisation needed some time. The solution today is known as "Frames" .
The window of a browser is divided in seperate regions, that are called FRAMESET . A FRAMESET is subdivided into several FRAMEs or in additional FRAMESETs .
Each FRAME contains, what usually represents a whole WEB page, starting with <HTML> and ending with </HTML>
FRAMESET needs a /FRAMESET-tag as termination.
You can view FRAMESETS as boxes, that can contain other boxes as well as things, whereby Frames can be viewn as things.

The general construction of such a window looks as follows:
<HTML>
  <HEAD>
    <TITLE>Framesets und Frames<</TITLE>
  </HEAD>
  <FRAMESET .....>     outer frameset
      <FRAMESET .....>     top inner frameset
            <FRAME .....>     left frame in top inner frameset
            <FRAME .....>     right frame in top inner frameset
      </FRAMESET .....>     end of top inner frameset
      <FRAME .....>     bottom frame in outer frameset
  </FRAMESET .....>     end of outer frameset
 </HTML>
And this is how the structure views :
   
left frame in top
frameset
right frame in top
frameset
bottom frame

 

Attention, there is NO <BODY>-tag.
The parts of a framesets either lie one nearby the other horizontally, then they are called COLUMNs , or vertically, then they are called ROWs. In the FRAMESET-tag it is mentioned, how the frameset is subdivided. The needed parameters areCOLS= and ROWS= In addition, the frames of a frameset can have a border, that is written as FRAMEBORDER=, and a bordercolour, written as BORDERCOLOR=.



sample, frames

whole page with framesets and frames:
<HTML>
  <HEAD>
    <TITLE> Frames and Framesets<</TITLE>
  </HEAD>
  <FRAMESET FRAMEBORDER=3 ROWS="30%,70%">
      <FRAMESET FRAMEBORDER=3 COLS="30%,70%">
            <FRAME SRC=sample9a.html>
            <FRAME SRC=sample9b.html>
      </FRAMESET>
      <FRAME SRC=sample9c.html>
  </FRAMESET>
 </HTML>
content of frame top left:
<HTML>
  <HEAD> <TITLE>top left frame</TITLE> </HEAD>
  <BODY>
    <H1>top left frame</H1>
        <BR>some content in top left frame
  </BODY>
 </HTML>
content of frame top right:
<HTML>
  <HEAD> <TITLE>top right frame</TITLE> </HEAD>
  <BODY>
    <H1>top right frame</H1>
        <BR>some content in top right frame
  </BODY>
 </HTML>


  It views like that
content of bottom frame:
<HTML>
  <HEAD> <TITLE>bottom frame</TITLE> </HEAD>
  <BODY>
    <H1>bottom frame</H1>
        <BR>some content of bottom frame
  </BODY>
 </HTML>



sample
continue:   forms
back:   colours