Download presentation
Presentation is loading. Please wait.
1
Frames How to Create Frames in HTML Dr. Sanders
2
Why Frames? Frames allow you to have more than a single window on the screen at the same time. –You can keep a menu on the screen and bring up different information. –Able to create Web sites that change dynamically with student input. Requires JavaScript
3
Frames Frame are trickier than tables, and you cannot use Composer to create frames. Other tools such as PageMill and DreamWeaver make it easy to create frames. A single page with frames has at least three HTML files: –Frameset file –Frame 1 and Frame 2 files
4
Frameset The frameset file is an invisible one that places the frames where you want on a page. Here’s the code for a simple set.
5
Frame Arrangement Frame 2 Frame 1
6
Frame Order Frameset Frame 2 Frame 1 Links in the frames will replace the current frame with the linked frame unless specified otherwise. Wombats
7
Replaced Frame Frame 2 Wombats
8
Nested Frames Arranging both columns and rows require a nested frameset:
9
Nested Frames 45% for top row 85% for first column 15% for second column 15% for first column 85% for second column
10
Parameters frameborder = “no” [Default=yes] border=“0” [Default=“1” may have higher number”] bordercolor=“white” noresize [No values] scrolling= “no” [auto, yes options] marginwidth =“50” [value in pixels] marginheight =“50” [value in pixels]
11
Parameter examples
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.