HTML and CSS Reference
In addition, the frameset is defined as having no borders, but the first frame is supposed
to have a border. How do you resolve this problem? You can apply three simple rules:
Attributes in the outermost frameset have the lowest priority.
Attributes are overridden by attributes in a nested <frameset> tag.
Any bordercolor attribute in the current frame overrides previous ones in
Table 17.1 shows a few extra attributes for the <frame> tag. These attributes can give you
additional control over how the user interacts with your frames. Other attributes control
margins or spacing between frames and whether scrollbars appear when required.
Control Attributes for the <frame> Tag
Displays borders around each frame
Creates borderless frames.
Specifies a URL that provides a longer
description of the contents of the frameset.
Primarily used with nonvisual browsers.
To adjust the margin that appears above
and below a document within a frame, set
marginheight to the number indicated by
The marginwidth attribute enables you to
adjust the margin on the left and right sides
of a frame to the number indicated by pixels .
Assigns a name to the frame for targeting
By default, the users can move the position
of borders around each frame on the current
screen by grabbing the borders and moving
them with the mouse. To lock the borders of
a frame and prevent them from being moved,
use the noresize attribute.
(Default) If the content of a frame takes up
more space than the area available, frames-
compatible browsers automatically add scroll-
bars to either the right side or the bottom of
the frame so that the users can scroll
through the document.