
Information
The Basics
Text
Pictures
Spacing
Colors
Links
Alignment
Lists/Bullets
Tables
Frames
Multimedia
Forms
ISO Characters
Meta Tags
Contact Us

Email Support
Email Contact
|
 |
 |
Introduction
Frames offer web sites a very unique feature, which is to display more than one web page on a single page. They divide a web
page up into any given number of sections, and in each section is a different page.
HTML Location
The HTML for the frames goes in the HEAD section of the HTML document. Because the frames take up the entire page, this
means nothing else can go on the page, leaving the BODY section empty.
|
index.html - Notepad |
....<HEAD>
</HEAD>....
|
|
Main Tags
There are two main tags that surround the entire frame that are mandatory for frames. The starting tag is
<FRAMESET TYPE="XX,XX"> and the closing tag is </FRAMESET>.
TYPE is replaced by either COLS or ROWS. COLS
produces vertical frames and ROWS produces horizontal frames. The XX is replaced by the width
in either percentage or pixels of how wide the frame is. For how many sets of widths there are, divided
by commas, that is how many frames there are.
|
index.html - Notepad |
....<HEAD>
<FRAMESET ROWS="50%,50%">
</FRAMESET>
</HEAD>....
|
|
Web Pages
Now, you need to specify the web pages that go in the frames. To do this, insert the tag
<FRAME SRC="URL" NAME="XXXX">. URL is replaced with the address of the web page you
want to show up, and XXXX is replaced with the name you want to give your frame. Insert
as many of these as you specified frames.
|
index.html - Notepad |
....<HEAD>
<FRAMESET ROWS="50%,50%">
<FRAME SRC="http://www.web-page-1.com" NAME="page1">
<FRAME SRC="http://www.web-page-2.com" NAME="page2">
</FRAMESET>
</HEAD>....
|
|
Test Your HTML
|
|