Frameset Attributes

Attributes to Use with the <frameset> Tag
AttributePurpose and SyntaxValues
borderDefines the thickness of the framesets' borders,
e.g., <frameset borders=10>
An absolute value in pixels.
bordercolorSets the border color,
e.g., <frameset bordercolor="red">
Any of 16 preset colors or the hexadecimal colors.
frameborderMakes the borders disappear for the frameset,
e.g., <frameset frameborder="0">
0 for no borders.
framespacingDefines the space between frames,
e.g., <frameset framespacing=10>
Put in topmost frameset tag.
An absolute value in pixels.
colsDefines the number and size of the columns.
<frameset cols="30%, 70%">
A percentage of the frame that each column will occupy. Use an * to allocate the remainder of the frame, e.g., <frameset cols="30%, *> To divide the remaining space equally, you can use more than one asterisk at a time.
rowsDefines the number and size of the rows.
<frameset rows="20%, 80%">
A percentage of the frame that each row will occupy. Use an * to allocate the remainder of the frame, e.g., <frameset rows="20%, *> To divide the remaining space equally, you can use more than one asterisk at a time.

Attributes to Use with the <frame> Tag
AttributePurpose and SyntaxValues
alignWraps the text that comes after the frame around the frame,
e.g., <frame align="left">
left or right<
borderDefines the thickness of the frames' borders,
e.g., <frame borders=10>
An absolute value in pixels.
bordercolorSets the border color,
e.g., <frame bordercolor="red">
Any of 16 preset colors or the hexadecimal colors.
heightDefines the height of the frame,
e.g., <frame height="80%">
A percentage or an absolute value in pixels.
frameborderSets the vertical borders in a frame,
e.g., <frame frameborder="0">
0 for no border, 1 for a border when frameset is set to 0 ("Yes" is Netscape)
framespacingDefines the space between frames,
e.g., <frame framespacing=10>
An absolute value in pixels.
heightDefines the height of the frame,
e.g., <frame height="80%">
A percentage or an absolute value in pixels.
marginheightDefines the space between the top and bottom edges of the frame and the frame's content,
e.g., <frame marginheight=1>
An absolute value in pixels.
marginwidthDefines the space between the left and right edges of the frame and the frame's content,
e.g., <frame marginwidth=1>
An absolute value in pixels.
nameDefines the name of the frame,
e.g., <frame name="navibar">
Names should match the use of the frame.
You do not need to name a frame if you will not be using it as a target.
NORESIZEPrevents visitors from resize the individual frames,
e.g., <frame NORESIZE>
 
scrollingDetermines if the frame will have scrollbars.
<frame scrolling="NO">
NO for no scrolling, Yes for scrolling, AUTO to set to the default.
srcDefines the filename of the source document
<frame src="toc.html">
A filename for an HTML document. The source may include a full or partial path.
widthDefines the width of the frame,
e.g., <frame width="30%">
A percentage or an absolute value in pixels.

Attributes to Use with the <a> Tag
AttributePurpose and SyntaxValues
targetSpecifies in which frame the document will open,
e.g., <a href="activities.html" target="main">
The name of a frame, e.g., main.
Use:
_blank to open in a new window.
_self to open in the same frame.
_top to open the link in the current browser window
independently of the frameset.
_parent to open the link in the frame that contains the current frameset. Only different from _top if you are using nested framesets.
The target can be specified for the complete frameset in the head section by using the base tag: <base target="main">

 

Back to the Week 9 Schedule