-the frame on the left may display the contents of a Web page containing a list of hyperlinks
-the frame on the right may display a Web page with product information
Advantages to Using Frames
Disadvantages to Using Frames
An Example of Frames
Activating a Hyperlink within Frames
Planning Your Frames
-What information will be displayed in each frame?
-How do you want the frames placed on the Web page?
-What is the size of each frame?
-Which frames will be static (always showing the same content)?
-What Web pages will users first see when they access the site?
-Should users be permitted to resize the frame to suit their needs?
An Example of a Frame Layout Sketch
Creating a frameset
-the rows attribute creates a row of frames
-the cols attribute creates a column of frames
-include the size and location of the frame
-include the Web pages the frames display
-the reason for this is that this HTML file displays the contents of other Web pages; technically, it is not a Web page
Frames Defined in either Rows or Columns
The Frame Syntax
-<frameset rows=“row1,row2,row3, . . .”> </frameset>
-<frameset cols=“column1,column2,column3, . . .”> </frameset>
<frame src=“url” />
Logo and Placement
Inserting a Frame forthe Head.htm File
-for example, a row height of 25% does not mean 25% of the display area, but rather 25% of the height of the frame into which that row has been inserted (or nested)
Creating a Nested Set of Frames in the Second Frame Row
Inserting frame columns
Result of Web Site with Nested Frames
Formatting a Frames
-the size of the margin between the source document and the frame border
-whether or not the user is allowed to change the size of the frame
Hiding and Displaying Scroll Bars
-scrolling can either be “yes” (to always display scroll bars) or “no” (to never display scroll bars)
Removing the Scroll Barsfrom the Logo Frame
Setting Frame Margins
-the browser determines the amount of space between the content of the page and the frame border
-occasionally, the browser sets the margin between the border and the content too large
-the margin should be big enough to keep the source’s text or images from running into the frame’s borders
-the margin should not take up too much space, because you typically want to display as much of the source as possible
Specifying Margins Syntax
-marginheight is the amount of space, in pixels, above and below the content of the page in the frame
-marginwidth is the amount of space to the left and right of the page
Specifying the Margin Sizes for the Frames
Controlling Frame Resizing
this ensures that the Web site displays as the designer intended