Share this Page URL

Chapter 13. Fooling Around with Frames > Forging a Frameset Page - Pg. 146

Fooling Around with Frames 146 In other words, the frameset page is really just an empty shell like, say, an ice cube tray. An ice cube tray doesn't do much of anything by itself, and it becomes useful only after you fill in the compartments with water. It's the same with a frameset page: It just divvies up the browser screen into two or more frames, and you have to fill these compartments with separate content pages. The Basic Frame Tags Building a frameset page requires two tag types: <FRAMESET> and <FRAME>. The idea is that you begin with <FRAMESET> and between this tag and its corresponding </FRAMESET> end tag, you add one <FRAME> tag for each frame you want to work with. So, to divide the browser window into two frames, you start like this: <HTML> <HEAD> <TITLE></TITLE> </HEAD> <FRAMESET> <FRAME> <FRAME> </FRAMESET> </HTML> Notice two things about the structure of this basic frameset page: · You still use the <HTML> and </HTML> tags, and the head section (the part between <HEAD> and </HEAD>) is exactly the same as in a regular page. · There's no body section (that is, no <BODY> tag).