Chapter 4. Frames
Version 2.0 of Netscape Navigator introduced a new capability for web documents called frames. Frames allow you to divide the main browser window into smaller subwindows (frames), each of which simultaneously displays a separate document. Frame support has since been incorporated into Microsoft Internet Explorer as well.
Two tags are used to make frame documents: <frameset> and
<frame>. The <noframes> element provides alternative
content for nonframes browsers. This is a requirement for HTML 4.0 and should
contain functional content, or a link to it, instead of telling
someone to get a browser that supports frames.
A frameset is simply a collection of frames that occupy the browser’s
window. Column and row definition attributes for the <frameset>
tag let you define the number and initial sizes for the columns
and rows of frames. The <frame> tag defines what document--HTML
or otherwise—initially goes into the frame, and is
where you may give the frame a name to use for hypertext link targets.
Here is the HTML source for a simple frame document, which is displayed by the browser in Figure 4.1.
<html> <head> <title>Frames Layout</title> </head> <frameset rows="60%,*" cols="65%,20%,*"> <frame src="frame1.html"> <frame src="frame2.html"> <frame src="frame3.html" name="fill_me"> <frame scrolling=yes src="frame4.html"> <frame src="frame5.html"> <frame src="frame6.html"> <noframes> You are using a browser that does not support frames. <a href="frame1.html">Take this ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access