HTML | <table> frame Attribute

The HTML <table> frame Attribute is used to specify the visibility of outside borders.

Syntax:

<table frame="value">

Attribute Values:



  • void: It is used to hide the outside border.
  • above: It is used to display the top outside border.
  • below: It is used to display the bottom outside border.
  • hsides: It is used to display the top and bottom outside border.
  • vsides: It is used to display the left and right outside border.
  • lhs: It is used to display the left outside border.
  • rhs: It is used to display the right outside border.
  • box: It is used to display all sides outside border.
  • border: It is used to display all outside border.

Note: The <table> frame Attribute is not supported by HTML 5.

Example:

filter_none

edit
close

play_arrow

link
brightness_4
code

<!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>

chevron_right


Output:

Supported Browsers: The browser supported by HTML <table> frame Attribute are listed below:

  • Google Chrome
  • Internet Explorer 9.0
  • Firefox
  • Safari
  • Opera


My Personal Notes arrow_drop_up

Check out this Author's contributed articles.

If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to contribute@geeksforgeeks.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.

Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.




Article Tags :
Practice Tags :


Be the First to upvote.


Please write to us at contribute@geeksforgeeks.org to report any issue with the above content.