Name

<frame> — NN: 2, 3, 4 &bull; MSIE: 2, 3, 4, 5 &bull; HTML 4 &bull; WebTV &bull; Opera3

Synopsis

<frame>

Defines a single frame within a <frameset>.

Attributes

bordercolor=#rrggbb or color name

Sets the color for frame’s borders (if the border is turned on). Support for this attribute is limited to Navigator 3.0 and higher and Internet Explorer 4.0.

frameborder=1|0 (Internet Explorer 3+ and W3C 4.0 Spec.); yes|no (Navigator 3+ and Internet Explorer 4.0)

Determines whether there is a 3-D separator drawn between the current frame and surrounding frames. A value of 1 (or yes) turns the border on. A value of 0 (or no) turns the border off. You may also set the frameborder at the frameset level, which may be more reliable.

Because Navigator and Internet Explorer support different values, you may need to specify the frameborder twice within <frame> to ensure full browser compatibility, as follows:

frameborder=yes frameborder=1 ...
longdesc=url

Specifies a link to a document containing a long description of the frame and its contents. This addition to the HTML 4.0 Specification may be useful for non-visual web browsers.

marginwidth=number

Specifies the amount of space (in pixels) between the left and right edges of the frame and its contents. The minimum value according to the HTML Specification is 1 pixel. Setting the value to 0 (zero) in order to place objects flush against the edge of the frame will work in Internet Explorer, however, Navigator will still display a 1-pixel margin space.

marginheight= ...

Get HTML Pocket Reference now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.