Things You'll Need:
- Text editor
- Web browser
-
Step 1
Open any text editor, such as Windows Notepad.
-
Step 2
Create the frameset document. This is the document that contains all of the frames for the web page. The frameset document will reference external web pages for each frame. The format of the document will look like:
<html>
<head>
<title>Title of Web Page</title>
</head>
<frameset rows="20%,*">
<frame name="top" src="top.html">
<frame name="main" src="main.html">
</frameset>
</html>
In this example, the top frame will display the web page "top.html" and the main frame will display the web page "main.html." The page "main.html" contains links that will open in the same frame while the "top.html" page contains information that does not change, such as the site banner. -
Step 3
Save this document with a title such as "index.html."
-
Step 4
Open the "main.html" document in a text editor.
-
Step 5
Create the "main.html" document as you would any web page.
-
Step 6
Use the syntax "<a target="_self" href="http://example.com">example</a>" for any links in the document. The "target" reference is what opens the link in the current frame.
-
Step 7
Test the link by opening the file "index.html" in any browser and clicking on the links.













