HTML <table> frame Attribute Last Updated : 03 Oct, 2024 Comments Improve Suggest changes Like Article Like Report The HTML <table> element's frame attribute specifies which sides of the table’s border should be displayed. It can take values like a void, above, below, hsides, vsides, lhs, rhs, or box, controlling how the table's edges are framed.Syntax<table frame="value">Attribute ValuesValueDescriptionvoidIt is used to hide the outside border.aboveIt is used to display the top outside border.belowIt is used to display the bottom outside border.hsidesIt is used to display the top and bottom outside border.vsidesIt is used to display the left and right outside border.lhsIt is used to display the left outside border.rhsIt is used to display the right outside border.boxIt is used to display all sides outside border.borderIt is used to display all outside borders.Note: The <table> frame Attribute is not supported by HTML 5. Example: In this example we demonstrates the use of the frame attribute in three tables. The first table has borders on all sides (frame="box"), the second table only shows vertical borders (frame="vsides"), and the third table only shows horizontal borders (frame="hsides"). html <!DOCTYPE html> <html> <head> <title> HTML table frame Attribute </title> </head> <body> <h1>GeeksforGeeks</h1> <h2>HTML table frame Attribute</h2> <table frame="box"> <tr> <th>NAME</th> <th>AGE</th> <th>BRANCH</th> </tr> <tr> <td>BITTU</td> <td>22</td> <td>CSE</td> </tr> </table> <br> <table frame="vsides"> <tr> <th>NAME</th> <th>AGE</th> <th>BRANCH</th> </tr> <tr> <td>BITTU</td> <td>22</td> <td>CSE</td> </tr> </table> <br> <table frame="hsides"> <tr> <th>NAME</th> <th>AGE</th> <th>BRANCH</th> </tr> <tr> <td>BITTU</td> <td>22</td> <td>CSE</td> </tr> </table> </body> </html> Output:Supported Browsers The browser supported by HTML <table> frame Attribute are listed below: Google ChromeEdge FirefoxOperaSafari Comment More infoAdvertise with us Next Article HTML <table> frame Attribute jit_t Follow Improve Article Tags : Web Technologies HTML HTML-Attributes Similar Reads HTML | <frame> noresize Attribute The HTML <frame> noresize attribute is used to specify that the frame element can not be resize by the user. This type of attribute is used to lock the size of the frame element. Syntax: <frame noresize="noresize"> Attribute Values: noresize: It defines the frame element that can not be 1 min read HTML | <frame> marginheight Attribute The HTML <frame> marginheight attribute is used to specifies the top and bottom margin of the content in an frame element. Syntax: <frame marginheight="pixels"> Attribute Values: pixels: It contains single value pixels which specifies the top and bottom margin of content in an frame elem 1 min read HTML <frameset> rows Attribute The HTML <frameset> element's rows attribute defines the number and height of rows in the frameset. Values can be set in pixels, percentages, or using an asterisk (*) for flexible distribution of available space.Syntax<frameset rows="pixels|%|*">Attribute Values:pixels: The height of the 2 min read HTML | <table> rules Attribute The HTML <table> rules Attribute is used to specify which parts of the inside borders that should be visible. Syntax: <table rules="value"> Attribute Values: none: It does not create any lines.groups: It create lines between row and column groups.rows: It creates line between the rows.co 1 min read HTML <table> cellpadding Attribute The HTML <table> cell padding Attribute is used to specify the space between the cell content and cell wall. The cellpadding attribute is set in terms of pixels. By default, the padding is set to 0. Note: The <table> cellpadding Attribute is not supported by HTML5. Syntax:<table cellp 1 min read Like