How to Create a Frameset With Two Frames
The HTML "frameset" tag lets you create columns in your Web pages. These columns are called "frames," and the frames display HTML pages from your site or from an external website. Your Web page can contain one or several frames. Creating two frames sets one column on the left side and one column on the right side of the page. Each frame takes up fifty percent of the user's browser window.
Instructions
-
-
1
Right-click the HTML page you want to edit and select "Open With." Double-click your preferred HTML editor in the list of program options. If you do not have an editor, double-click "Notepad," which opens a text editor you can use to add the frameset tags.
-
2
Scroll down the page to where you want the frames to display. If the whole page consists entirely of the two frames, then place the tags directly under the "<body>" tag.
-
-
3
Type the frameset tag. Type the following code in the HTML editor:
<frameset cols="50%,50%"> </frameset>
This tag defines a frameset for two frames, each with a width of 50 percent of the browser's window.
-
4
Type the "frame" tags in the frameset statement created in step three. Since the frameset tag defined two columns, you must add two frames to the layout. The following code shows you how to add two frames:
<frame src="left_frame.htm" />
<frame src="right_frame.htm" />
Replace the "src" property with the names of your own HTML pages.
-
1