The Wayback Machine - https://web.archive.org/web/20240706040907/https://www.geeksforgeeks.org/html-table-frame-attribute/
Open In App

HTML | <table> frame Attribute

Last Updated : 29 May, 2019
Improve
Improve
Like Article
Like
Save
Share
Report

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:




<!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 Chrome
  • Internet Explorer 9.0
  • Firefox
  • Safari
  • Opera


Similar Reads

How to create Frame by Frame Animation using CSS and JavaScript ?
Frame by frame animation is a technique where a set of images are shown, one by one in a particular order, maintaining fixed time interval gaps between two consecutive images, to make an illusion of motion to the eyes. Now, in a more technical way, we can say that frame-by-frame animation is a technique where different frames appear, one after anot
2 min read
HTML | &lt;frame&gt; src Attribute
The HTML &lt;frame&gt; src Attribute is used to specifies the document URL which is used to display in the frame. Syntax: &lt;frame src="URL"&gt; Attribute Values: It contains single value URL which specifies the source of the document. The possible value of the URL is: absolute URL: It points to another website. relative URL: It points to a file w
1 min read
HTML | &lt;frame&gt; noresize Attribute
The HTML &lt;frame&gt; 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: &lt;frame noresize="noresize"&gt; Attribute Values: noresize: It defines the frame element that can not be resize by the user. Note: The &lt;frame&gt; tag is
1 min read
HTML | &lt;frame&gt; longdesc Attribute
The HTML &lt;frame&gt; longdesc Attribute is used to specify a page which contains the long description of the content of the frame. Syntax: &lt;frame longdesc="URL"&gt; Attribute Values: URL: It contains the value i.e URL which specifies the page which contains the long description of the content of the frame.An absolute URL:It points to another w
1 min read
HTML | &lt;frame&gt; frameborder Attribute
The HTML &lt;frame&gt; frameborder attribute is used to specify whether or not a border should be displayed between the frames. For this, we use two values 0 and 1, where 0 defines no border and 1 defines the border. Syntax &lt;frame frameborder="1|0"&gt; Note: This attribute is depreciated from HTML 5. Attribute Values: 0: It has a default value.
1 min read
HTML | &lt;frame&gt; marginheight Attribute
The HTML &lt;frame&gt; marginheight attribute is used to specifies the top and bottom margin of the content in an frame element. Syntax: &lt;frame marginheight="pixels"&gt; Attribute Values: pixels: It contains single value pixels which specifies the top and bottom margin of content in an frame element. Note: This attribute is not supported by HTML
1 min read
HTML | &lt;frame&gt; marginwidth Attribute
The HTML &lt;frame&gt; marginwidth attribute is used to specifies the left and right margin of the content in an frame element. Syntax: &lt;frame marginwidth="pixels"&gt; Attribute Values: pixels: It contains single value pixels which specifies the right and left margin of the content in an frame element. Note: This attribute is not supported in HT
1 min read
HTML | &lt;frame&gt; scrolling Attribute
The HTML &lt;frame&gt; scrolling attribute is used to specify that whether the scrollbar will be displayed or not in the &lt;frame&gt; element. Basically, the scrollbar is used when the content is larger than the Iframe Element.Syntax: &lt;frame scrolling="auto|yes|no"&gt; Attribute Values: auto: It has the default value. The scrollbar appears when
1 min read
HTML DOM Table frame Property
The HTML DOM Table frame property is used to set or return the value of the frame attribute of an &lt;table&gt; element. The frame attribute is used to specify the visibility of outside borders. Note: This property is not supported by HTML5 Syntax It is used to return the frame property. tableObject.frame; It is used to set the frame property. tabl
2 min read
HTML5 MathML frame Attribute
This attribute holds the border value for the entire table. Possible values are none, solid and dashed. This attribute is accepted by &lt;mtable&gt; tag only. Syntax: &lt;element frame="none|solid|dashed"&gt; Attribute Values: none: This attribute sets the column lines of the table none.solid: This attribute sets the column lines of the table solid
1 min read
three90RightbarBannerImg