HTML encyclopaedia

Frames

Note. Frames are not supported by the HTML 3.2 standard but they are likely to appear in a future HTML standard. There is no published standard, the notes here relate to observed practice supported by IE and NN.

Examples

A common use of frames is to use one narrow frame on the left-hand side of the window to display links to a set of pages, when the user selects one of the links the selected page is displayed in another, larger, frame. Here's the index of the HTML encyclopaedia displayed this way. Note that this isn't an up-to-date index so don't bookmark it.

Here's the HTML for the body of the page linked to above

<frameset rows=20%,80%>
      <frame name=head src=framex11.html>
      <frameset cols=20%,80%>
          <frame name=index src=framex12.html>
          <frame name=main src=blank.html>
      </frameset>
</frameset>

Note that there are two framesets in use, the first frameset splits the window into two parts horizontally, the smaller title part occupying 20% of the vertical space and the other occupying 80% which is occupied by a further frameset which is divided vertically.

If you are unfamiliar with frames you should look at the example and note the following points

Here are some variations on the basic frame based example linked to above.

  1. Variant 1

    Here's a variant with resizing disabled and scrolling disabled for the top frame. Notice the absence of scroll bars and the fact that you cannot select the inter-frame bars.

  2. Variant 2

    Here's a variant in which the index has been split into four separate pages with links between them. This is a rather attractive way to display this sort of material. However, in the absence of scrolling on the index frame, it is quite possible for the links to other parts of the index to be invisible and inaccessible to the user.

  3. Variant 3

    The final example uses the framespacing and frameborder attributes of the <frameset> tag to completely suppress the inter-frame boundaries, you may, or may not, think this is particularly effective. You may also think it would be even more effective if the "HTML Encyclopaedia" heading frame were omitted.

Browsers
MOS3 and ARA do not support frames at all. IE, NN and OP2 support frames, however OP2 will not completely suppress the frame boundaries.


See also <frame>, <frameset>, <noframe> and <a>