|
With frames you can display multiple documents at one time, all in their own portion of the browser window.
Below is a list of all the tags that you can use to make frames. |
| Tag | Explanation |
| <FRAMESET> </FRAMESET> | Begins and ends the frames. |
| <FRAME> | Is used to give the info about one frame. |
| <NOFRAMES> </NOFRAMES> | An alternate document to display if the browser doesn't support frames. Any tag can be used inside of it. |
| Those are the only tags that you use to make frames, but the attributes are what makes your frames work. |
|
The FRAMESET tag is used to tell the browser that frames are used on the site. Not all browsers support frames, which is why you should always include a NOFRAMES tag on your page. When you add a frameset tag to your site your need to specify ROWS or COLS. ROWS will split the page vertically, COLS does the same horizontally.
|
|
<FRAMESET COLS="25%,*,32%"> <FRAME SRC="top.html"> <FRAME SRC="middle.html"> <FRAME SRC="bottom.html"> </FRAMESET> |
|
|
<FRAMESET ROWS="25%,*,32%"> <FRAME SRC="left.html"> <FRAME SRC="middle.html"> <FRAME SRC="right"> |
|
|
<FRAMESET COLS="70%,*,50%"> <FRAME SRC="top.html" NAME="top"> <FRAMESET COLS="40%, 60%"> <FRAME SRC="left.html" NAME="left"> <FRAME SRC="right.html" NAME="right"> </FRAMESET> <FRAME SRC="btm.html" NAME="btm"> </FRAMESET> |
| ||||||
|
<FRAMESET ROWS="25%,75%"> <FRAME SRC="left.html"> <FRAME SRC="main.html"> </FRAMESET> |
|
|
<FRAMESET ROWS="25%,75%"> <FRAME SRC="left.html"> <FRAME SRC="main.html"> <NOFRAMES> <I>Sorry</I>, your browser doesn't support frames. Get a higher level browser then come back and see my site. </NOFRAMES> </FRAMESET> |
Sorry, your browser doesn't support frames. Get a higher level browser then come back and see my site.
|
|
<FRAMESET COLS="160,*" FRAMEBORDER="NO" BORDER=0 FRAMESPACING=0> <FRAMESET ROWS="*,148" FRAMEBORDER="NO" BORDER=0 FRAMESPACING=0>
<FRAME SRC="testleft.html" NAME="left" SCROLLING="NO"
<FRAME SRC="testcorner.html" NAME="corner" SCROLLING="NO" </FRAMESET>
<FRAMESET ROWS="*,120" FRAMEBORDER="NO" BORDER=0
<FRAME SRC="main.html" NAME="main" SCROLLING="AUTO"
<FRAME SRC="testbottom.html" NAME="bottom" SCROLLING="NO"
<FRAME SRC="testbottom.html" NAME="bottom" SCROLLING="NO" |
|