Sams Teach Yourself HTML 4 in 24 Hours

Sams Teach Yourself HTML 4 in 24 Hours

By Dick Oliver

The <frame /> Tag

Within the <frameset> and </frameset> tags, you should have a <frame /> tag indicating which HTML document to display in each frame. (If you have fewer <frame /> tags than the number of frames defined in the <frameset> tag, any remaining frames will be left blank.)

Include a src attribute in each <frame> tag with the address of the Web page to load in that frame. (You can put the address of an image file instead of a Web page if you just want a frame with a single image in it.)

You can include any HTML page you want to in a frame. For smaller frames, however, it's a good idea to create documents specifically for the frames with the reduced display area for each frame in mind. The top frame in Figure 21.1, for instance, is listed first in Figure 21.4. It is much shorter than most Web pages because it was designed specifically to fit in a frame less than 80 pixels tall.

Share ThisShare This

Informit Network