HTML and CSS Reference
In-Depth Information
Standard Events
onload, onunload
Events Defined by Internet Explorer
onactivate, onafterprint, onbeforedeactivate, onbeforeprint, onbeforeunload,
onblur, oncontrolselect, ondeactivate, onfocus, onload, onmove, onmoveend,
onmovestart, onresizeend, onresizestart, onunload
Element-Specific Attributes
border
This attribute sets the width, in pixels, of frame borders within the frame set.
Setting the value to
0
eliminates all frame borders. This attribute is not defined in the HTML
or XHTML specification but is widely supported.
bordercolor
This attribute sets the color for frame borders within the frame set using either
a named color or a color specified in the hexadecimal
#RRGGBB
format.
cols
This attribute contains a comma-delimited list that specifies the number and size of
columns contained within a set of frames. List items indicate columns from left to right.
Column size is specified in three formats, which might be mixed. A column can be assigned
a fixed width, in pixels. It also can be assigned a percentage of the available width, such as
50 percent. Finally, a column can be set to expand to fill the available space by setting the
value to
*
, which acts as a wildcard.
frameborder
This attribute controls whether or not frame borders should be displayed.
Netscape supports
no
and
yes
values. Microsoft uses
1
and
0
as well as
no
and
yes
.
framespacing
This attribute indicates the space between frames, in pixels.
rows
This attribute contains a comma-delimited list that specifies the number and size of
rows contained within a set of frames. The number of entries in the list indicates the number
of rows. Row size is specified with the same formats used for columns.
Examples
<!-- This example defines a frame set of three columns. The middle column
is 50 pixels wide. The first and last columns fill the remaining space.
-->
<frameset cols="*,50,*">
<frame src="column1.html">
<frame src="column2.html">
<frame src="column3.html">
</frameset>
<!-- This example defines a frame set of two columns, one of which is 20%
of the screen, and the other, 80%. -->