1. Home
  2. Computing & Technology
  3. Personal Web Pages

Fire Up Your Site With Frames
Create A Frame

From , former About.com Guide

Frames have their up side and their down side. When choosing to use frames over tables you need to keep a few things in mind. One of the up sides of using frames is that you can use the same frames on every page you create without ever having to copy and paste the information over and over. One of the down sides is that it's harder for your visitors to bookmark particular pages.

Frames are really not as hard as you think, once you get the basics down. The one thing you have to remember when using frames is that you will have to create several different pages just to have one page. Each frame is it's own page and the main page is also it's own page. Then you have the frame page that puts them all together into one page. The frame page is the page that people will come to. The main page and the frames will show up on the frame page as long as you tell them to.

The first thing you will want to do is create your main page. This is a regular, normal page that has your content on it. Then you will want to create your frame or frames. If you only want a top frame then you only need to create one. This page is also a normal page but is very short and has only enough information on it to show up at the top or side of your main page.

The frame page is the page that people will see. This is the next page you will create. I suggest creating this page last because the only things that are on this page are links to the main page and the frames.

Frame Tags

To get you started here is a list of basic frame tags that will be used in this lesson:

frameset - Starts the beginning of your framed page or frame set. This is the page that people will see when they come to your site. This tag needs the end tag /frameset.

frameborder - This code tells the browser how thick to make the border around your frame.

rows or cols - Use this to tell your browser whether your frame will be a row across your page or a column down your page. It will also tell it how wide or long the row or column will be.

frame - Starts the beginning of a particular frame.

src - Tells the browser which page will be shown within the frame.

scrolling - This tag tells your frame whether it should scroll or not. The options "yes", "no" or "auto" are used with this tag. "auto" tells the frame to scroll only when it needs to, "yes" tells it to always scroll and "no" tells it to never scroll.

noresize - Tells your frame not to allow the user to resize it. Your frame will automatically have a bar that allows it to be resized unless you tell it not to.

noframes - The text you put inside this tag will only be seen by people using a browser that can not or will not see frames. You should place text here to redirect your user to your main page so they have a way to get to your site even if they can not see the frames. The end tag /noframes must be used with this tag.

Next > Put Together All The Pieces

Explore Personal Web Pages
About.com Special Features

The Best Web Trends of the Decade

A look back at the best innovations, ideas and technologies over the last 10 years, More >

Family Tech Center

Stay connected and entertained with reviews on tips on the latest HDTVs, cellphones and more. More >

  1. Home
  2. Computing & Technology
  3. Personal Web Pages
  4. Frames
  5. Frames - Frames for Your Web Site>

©2009 About.com, a part of The New York Times Company.

All rights reserved.