Name
<frame> — NN 2, 3, 4, 6 MSIE 3, 4, 5, 5.5, 6 HTML 4.01 WebTV Opera5
Synopsis
<frame> (no end tag)
Defines a single frame within
a <frameset>.
Attributes
-
bordercolor="#rrggbb"orcolor name Nonstandard. Sets the color for frame’s borders (if the border is turned on). Support for this attribute is limited to Netscape Navigator 3.0+ and Internet Explorer 4.0+.
-
frameborder=1|0(IE 3+ and W3C 4.0 Spec.);yes|no(NN 3+ and IE 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 (orno) turns the border off. The default value is 1 (border on). You may also set the frameborder at the frameset level, which may be more reliable.Because Netscape and Internet Explorer support different values, you 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.01 specification may be useful for nonvisual web browsers, but it is currently not well supported.
-
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 in order to place objects flush against the edge of the frame works in Internet Explorer, but Netscape ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access