HTML <table> frameAttributes
Examples
Only display the outer border around the table:
<table frame="box">
<tr>
<th>Month</th>
<th>Savings</th>
</tr>
<tr>
<td>January</td>
<td>$100</td>
</tr>
</table>
<tr>
<th>Month</th>
<th>Savings</th>
</tr>
<tr>
<td>January</td>
<td>$100</td>
</tr>
</table>
Try it yourself »
Browser Support
![]()
![]()
![]()
![]()
![]()
Internet Explorer 9+, Firefox, Opera, Chrome, and Safari support the frame attribute.
Note:Internet Explorer 8 and earlier versions do not support the frame attribute of the <table> tag.
Definition and Usage
HTML5 does not support the <table> frame attribute. Please use CSS instead.
The frame attribute specifies which part of the outer table border is visible.
Tip:From a practical standpoint, it is best not to specify frame, but rather use CSS to addborders (border styles)。
Syntax
<table frame="value">
Attribute Values
| Value | Description |
|---|---|
| void | Does not display the outer border. |
| above | Displays the upper outer border. |
| below | Displays the lower outer border. |
| hsides | Displays the upper and lower outer borders. |
| vsides | Displays the left and right outer borders. |
| lhs | Displays the left outer border. |
| rhs | Displays the right outer border. |
| box | Displays the outer border on all four sides. |
| border | Displays the outer border on all four sides. |
HTML <table> tag Other extensions