Notice that the <frame> tags have the
attributes src, name, and scrolling.
Frames have several other attributes, but these are generally the most
widely-used ones.
The src attribute points to the file that
appears in the frame. The left frame displays a menu from the file menu.htm.
The right frame displays the first page of your content, page1.htm. You can, of
course, name these files whatever you want. You have to create these files
yourself; if they don't exist, the frames will be empty.
The name attribute is useful when linking from
one frame to another. The name attribute is discussed later in the article.
The scrolling attribute controls whether or not a frame has a scrollbar. You
can set the attribute to no, yes, and auto. auto adds a scrollbar only if the
contents of a frame go past the edge of the browser window.
Your
Framed Page
When you put it all together, the code for the
page looks like this: