You are here: Reference > HTML > attributes > frame (table)

frame attribute (table)

Browser support:
Sets which borders of a table element should be displayed.
The frame attribute has effect only on the border specified by the HTML border attribute.
JavaScript page for this attribute: frame. You can find other example(s) there.

Possible values:

String that sets the visibility of border frames.
One of the following values:
above
Only the top border should be displayed.
below
Only the bottom border should be displayed.
border
Borders on all sides of the table frame should be displayed.
box
Borders on all sides of the table frame should be displayed.
hsides
Only the top and bottom borders should be displayed.
lhs
Only the left border should be displayed.
rhs
Only the right border should be displayed.
void
Default. No border should be displayed.
vsides
Only the left and right borders should be displayed.
Default: void.

Example HTML code 1:

This example illustrates the use of the frame attribute:
<table id="myTable" border="3px" frame="above">
    <tr>
        <td>Apple</td>
        <td>Pear</td>
        <td>Peach</td>
    </tr>
</table>
Did you find this example helpful? yes no

Supported by tags:

Related pages:

External links:

User Contributed Comments

Post Content

Post Content