This is an ad.
 
Webmonkey Kids
Webmonkey Kids
Lessons
Projects
Playground
Tools

Introduction
icon Frames Are a Picnic
Building the Frameset
More Chicken!
Adding the Frames
Sizing the Frames
Hanging the Frame



Parents and Teachers:
Find out how your kids can use Webmonkey for Kids as a learning tool at home or in the classroom with our Planning Guide.

Send us feedback

Lesson B: Frames
Adding the Frames


ow that we've set up the frameset, we'll go ahead and make the frames within it. Each frame in a document is described by a single <frame> tag. You can do a bunch of things with the <frame> tag, but we'll only go into two of them: the source and the name. The source is really important because it tells the browser what file to put into the frame. The name becomes important when you start linking between frames.

You always name your frames from left to right and top to bottom, so the first frame we describe in picnicplate.html will be the chicken section:

<frame src="chicken.html" name="chicken">

Again, "src" (source) indicates the HTML page that will be pulled into that frame, and "name" is just the name of the frame.

So far, our frame document looks like this:

<frameset cols="66%,34%">
<frame src="chicken.html" name="chicken">

Back

Next Page