HTML Frames

previous next


With frames, you can display more than one Web page in the same browser window.


Frames

With frames, you can display more than one HTML document in the same browser window. Each HTML document is called a frame, and each frame is independent of the others.


The Frameset Tag


The Frame Tag

In the example below we have a frameset with two columns. The first column is set to 25% of the width of the browser window. The second column is set to 75% of the width of the browser window. The HTML document "frame_a.htm" is put into the first column, and the HTML document "frame_b.htm" is put into the second column:

<frameset cols="25%,75%">
   <frame src="frame_a.htm">
   <frame src="frame_b.htm">
</frameset>

 


Useful Tips

If a frame has visible borders, the user can resize it by dragging the border. To prevent a user from doing this, you can add the attribute noresize="noresize" to the <frame> tag.


Frame Tags

Tag

Description

<frameset>

Defines a set of frames

<frame>

Defines a sub window (a frame)

 


Try it

To see how HTML works, you can only push the submit button, or you can make your own HTML code.

           

 


previous next