Web Design with Frames Summary

  • Frameset document use the Frameset DTD Declaration. It has no body tag. The <noframes> tag displays the body tag and other information.
  • <!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">
    <html> <head> <title>Frameset 2 Columns</title>
    </head>
    <frameset cols="25%, *">
    <frame name="left" src="first.html">
    <frame name="right" src="second.html">
    </frameset>
    <noframes>
    <body>
    <p>Place alternative text within the body tags</p>
    </body> </noframes> </html>

  • The frameset can be arranged in columns or rows. Nested Frameset is a combination of both columns and rows - one frameset inside of the other. The width of the columns or rows is controlled by the values entered.
  • The scroll bars appear when the page content excedes the window dimensions. Hide or display scroll bars: (scrolling="yes")
  • Each frame window is named using CSS id="name".Other frame attributes include: rows, cols, border and bordercolor.
  • Frame attributes: name, src, target, width, height, and margin height & width.
  • Inline frames are embedded in the xhtml file with a little window to display the inline file.
  • Web Design with XHTML Part II
    Doris Cuffey, Instructor