Web Composition Week 4
  Jonelle Thackston | Graphics Manager

View Feedback | Send this Article | Published 2/21/03



Graphic By: Jonelle Thackston

Last week, we learned about tables. This week we will learn about the other most popular layout tool in web pages, frames.

Frames

Frames split the web page up like window panes split a window. In creating a frame page you write a page that defines the frames as well as one for each section of the page. Essentially, what the actual frame page does is tell the browser "where" and "how" to split the web page, then takes existing pages and places them into the different sections.

For example, if you would like a web page that is split in two vertically so you have a left and right side, your web page would look like the following:

Now, on the right side you can put information that interacts with the right side of the brain and on the left side information for the left side of the brain.

This is actually a really good way to show two different ideas at once. For example, for a political debate you could put one canidate on each side. This way someone could look back and forth comparing points. This is also good for citing work as you could split the page horizontally and put a research paper you have written in the top 80% and cite your information in the bottom 20%. This way, the reader can go right from a quote in your paper directly to your bibliographic information for where you found it.

There are very few frame tags and they are as follows:

HTML (FRAME) TAGS

TAG/ATTRIBUTE DESCRIPTION
FRAME For creating frames
  BORDER For specifying the thickness, if any, of the border
  BORDERCOLOR For specifying the color of frame borders
  NAME For naming a frame so it can be used as a target
  NORESIZE For keeping users from resizing a border
  SCROLLING For displaying or hiding a frame's scrollbars
  SRC For specifying initial URL to be displayed in frame
  TARGET For specifying which frame a link should be opened in
FRAMESET For defining a frameset
  BORDER For specifying the thickness, if any, of the border
  BORDERCOLOR For specifying the color of frame borders
  COLS For determining number and size of frames
  FRAMESPACING For adding space between frames
  ROWS For determining number and size of frames
The most common use for frames is making your title and menu a permanent entity. To do this, you will need to split the page both horizontally and vertically. Notice that a frame page is not a strict document type and uses a frameset opening tag. The pages in your frames can still be strict documents.

<!DOCTYPE html PUBLIC "-//w3c//DTD XHTML 1.0 Frameset//EN"
"http://www.w3.org/TR/xhtml1-frameset.dtd">
<html>
  <head>
    <title>My Fourth Page</title>
  </head>
  <frameset cols="144,*">
    <frame name="menu" src="menu.html">
    <frameset rows="108,*">
      <frame name="title" src="title.html">
      <frame name="main" src="main.html">
    </frameset>
  </frameset>
</html>
Web Example Eight
Most designers now try to avoid frames because they feel it clutters the screen and does not look as good as tables do. If you can use tables to do what you want to do with frames, then I would suggest using a table. There are a few things that frames are still the best tool for. A warning though--when you have links in a frame page make sure you have your targets right. More than likely, you would prefer another part of your page to open up in the frames settings, but outside pages should not be in your frames page, or at least should open up in a new window.




Related Articles & Links
Web Composition Week 1
Web Composition Week 2
Web Composition Week 3
Web Composition Week 4
Web Composition Week 5
Web Composition Week 6
Web Composition Week 7








Responses:
Refresh frame to view latest entries.


Name: Kevin
Comments:
Jonelle, the complexity of these articles continues to amaze me! Thanks for writing :D

Life Section Tech Section Ritz Section Vent Section Sports Section Toon Section Play Section Season 13 Whim Home Whim Archive About Us Join our Staff Subscribe/Read our Newsletter Search Whim Submit Your Article Meet our Staff Submit Your Article Whim Policies Whim Policies