Attributes to Use with the <frameset> Tag
| Attribute | Purpose and Syntax | Values |
| border | Defines the thickness of the framesets' borders, e.g., <frameset borders=10> | An absolute value in pixels. |
| bordercolor | Sets the border color, e.g., <frameset bordercolor="red"> | Any of 16 preset colors or the hexadecimal colors. |
| frameborder | Makes the borders disappear for the frameset, e.g., <frameset frameborder="0"> | 0 for no borders. |
| framespacing | Defines the space between frames, e.g., <frameset framespacing=10> Put in topmost frameset tag. | An absolute value in pixels. |
| cols | Defines 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. |
| rows | Defines 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
| Attribute | Purpose and Syntax | Values |
| align | Wraps the text that comes after the frame around the frame, e.g., <frame align="left"> | left or right< |
| border | Defines the thickness of the frames' borders, e.g., <frame borders=10> | An absolute value in pixels. |
| bordercolor | Sets the border color, e.g., <frame bordercolor="red"> | Any of 16 preset colors or the hexadecimal colors. |
| height | Defines the height of the frame, e.g., <frame height="80%"> | A percentage or an absolute value in pixels. |
| frameborder | Sets 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) |
| framespacing | Defines the space between frames, e.g., <frame framespacing=10> | An absolute value in pixels. |
| height | Defines the height of the frame, e.g., <frame height="80%"> | A percentage or an absolute value in pixels. |
| marginheight | Defines 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. |
| marginwidth | Defines 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. |
| name | Defines 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. |
| NORESIZE | Prevents visitors from resize the individual frames, e.g., <frame NORESIZE> | |
| scrolling | Determines if the frame will have scrollbars. <frame scrolling="NO"> |
NO for no scrolling, Yes for scrolling, AUTO to set to the default. |
| src | Defines 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. |
| width | Defines 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
| Attribute | Purpose and Syntax | Values |
| target | Specifies 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"> |