Unit 8. Using Frames (I)

We are going to see what Frames are and when they are used. We will also see how to insert a simple frame into a web site and how to work with it.




Frames are used to distribute the data in a web site. They help keep some parts straight such as the logotype and the browser bar, while others can change. In addition they improve the appearance.

Each page's frame has its own HTML file. For example, in the image on the right you can see the page with two frames. The left frame has the menu.htm file, and the right frame has the dogs.htm file. To see the page this way, we have opened the browser's file frames.htm, which is the page that has grouped the frames.

It is possible to edit the frame's files from the page that containts the set of frames. This simplifies the work as it is easier to figure what the final page is going to look like.This is something that you cannot do if you edit each file that has a frame individualy.

Working with frames can be a bit complicated, and even more so in the begining. We are not going to go too much into the theme, and we will only look at some of the basic concepts with a few easy examples.


Creating frames

There are many ways of creating a frame. We will only learn one.

To create a frame, you first need to open any file. It can be new or existing.

After this, you need to go to the Insert menu, HTML, and Frames. Through this option you can select the type of frame you want to create.

We are going to look at the Left frame.

If we click on Left a new frame will be created in the left part of the actual file.


As you can see in the image, there is a line splitting the document. The beginning document was a new file.

In this case we will have three files: the left one, the right one, and the one which has the set of frames. The right one is the file we had at the start. It is in the frame known as Main Frame.

To select the file that has the set of frames you have to click on the line that splits the frames. This is only possible in case of not having been previously saved.


In case of inserting a right frame instead of a left frame, the empty frame will be shown to the right of the original file.

In this image you can see an example of a right frame.

A right frame has been inserted over an existing file, menu.htm.

As in the previous case, we have three files: the left, the right, and the one which has the set of frames. In this case the file we had at the begining is the left one, while the previous was the right one. For this reason Main frame will be at the left.

Main frame is the frame that is always in the initial file, into which the rest of the frames have been inserted.


  Ir a la página anterior Índice del curso  Ir a la siguiente página  

Page. 8.1

Legal warning: Authorised on-line use only. It is not allowed the use of these courses in companies or private teaching centres.
© aulaClic. All rights reserved. Reproduction in any form whatsoever is prohibited.