Dividing a web page into frames is quite simple. Frames organize web pages bydividing them into rows or columns.
The basic concept of frames is that eachframe is a regular, complete html document. That means more than on one page isviewed in one single screen. This allows the viewers to stay one page other thanhaving to keep on going to new pages. If a person wanted to divide a page into 2side by side frames, he/she should put one complete html document in the leftframe and another complete html document in the right frame. In order to makethis happen, making an additional html document is needed. This third htmldocument contains the tags that specify what goes where.
That is actually itsonly function. The two tags used are the and the tags. A tag is a container tag,and a tag is not. For those who don't know what that means, a container tag hasan opening and a closing .
The tag specifies the html documents and whether theframe should have a border or a scrollbar for each html document. The tag doesall the dividing. It specifies a few things regarding how to divide them up.(Note: If using web page providers such as angelfire and geocities, make surethe page that the frames code is going on is set for advanced html.) The mostpopular way frames are organized is by using two columns.
One is simply beingused for the menu of the web site, and the other being used as the main page toview a specific page within the web site. The examples used will include how tocreate frames showing the division of the page into two columns and also showingthe division of the page into two rows. First of all, name the three htmldocuments index.html, the page used for dividing it into frames; side1.html, theleft column of the page used for the menu; and main.html, the page for viewing aspecific page within the web site.
Make sure the following html code is used inthe index.html page: *FRAMESET cols="100,*”* src=”side1.html”* . The* simply means the space that is left over on the web page. The 100 means thatthe first frame is 100 pixels wide. That code should be used to divide a pageinto two columns.
Be sure to adjust it to the size needed for the web site.Dividing a page into rows uses the same concept; however, the code is slightlydifferent. Use the same three html documents: index.html, side1.
html, andmain.html. This code should be used in the index.html page: src=”side1.html”*. A person can also decide whether he/she wants the frame to have scrollbars orborders.
It should be specified in the tag like this: src=”side1.html”scrolling=”no” border=”false”* src=”main.html” scrolling=”yes”border=”false”*. That code will make the left column not to have scrollbarswhereas the main column will have scrollbars.
It is possible to divide a pageinto more than two frames, but they must be specified in the tag, and more htmldocuments will have to be made. For example, rows=”65,*,65”* will divide apage into three rows in which the first and last will be 65 pixels tall, whilethe middle will be what is left over. Sometimes when too many frames are used,it is confusing to the viewer. Using only a few frames will make viewing a website easier and more organized. Viewing web pages in frames make visiting iteasier and more enjoyable.
Looking at nice layouts will keep the visitors comingback. After figuring out how to do frames, everyone will realize how easy itreally is.