Asked in
Web Programming
HTML

How do you create frames?

Answer

User Avatar
Wiki User
December 18, 2011 11:06AM

A frameset is a group of web pages that will be shown in a unique grouping web page, so the first step could be to create those independent web pages first.

For example, take a look at these three files:

--------------------------------------- firstFrame.html

<HTML><HEAD></HEAD>

<BODY>

Hi, I am the first frame web page

</BODY>

</HTML>

----------------------------------------------------------------

--------------------------------------- secondFrame.html

<HTML><HEAD></HEAD>

<BODY>

Hi, I am the second frame web page

</BODY>

</HTML>

----------------------------------------------------------------

------------------------------------------- frameSet.html

<HTML><HEAD></HEAD>

<BODY>

<frameset cols="85%, 15%">

<frame src="URL OF FRAME WEBPAGE 1 HERE">

<frame src="URL OF FRAME WEBPAGE 2 HERE">

</frameset>

</BODY>

</HTML>

---------------------------------------------------------------

* ommited the noframes tag for simplicity

I recommend you not to use FRAMES never to avoid indesirable external backlinks issues. See Wikipedia's article critique for more information.

See the link to Wikipedia herein.