• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

11. Frames > Frame Tags

Frame Tags

You need to know only three tags to create a frame document: <frameset>, <frame>, and <noframes>. In addition, the HTML 4 and XHTML standards provide the <iframe> tag, which you may use to create inline, or floating, frames.

A frameset is simply the collection of frames that make up a 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 which document — HTML or otherwise — initially goes into the frames within those framesets and is where you may give the frame a name to use for document hypertext links.

Here is the HTML source used to generate Figure 11-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" id="test">
  <noframes>
    Sorry, this document can be viewed only with a 
    frames-capable browser.
    <a href="frame1.html">Take this link</a>
    to the first HTML document in the set.
  </noframes>
</frameset>
</html>

PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint