HTML | <table> border Attribute
The HTML <table> border Attribute is used to specify the border of a table. It sets the border around the table cells.
Syntax:
<table border="1|0">
Attribute Values:
- 1: It sets the border around the table cells.
- 0: It removes (not set) the border around the table cells.
Example:
<!DOCTYPE html> <html> <head> <title> HTML table border Attribute </title> </head> <body> <h1>GeeksforGeeks</h1> <h2>HTML table border Attribute</h2> <table border="1"> <caption>Author Details</caption> <tr> <th>NAME</th> <th>AGE</th> <th>BRANCH</th> </tr> <tr> <td>BITTU</td> <td>22</td> <td>CSE</td> </tr> <tr> <td>RAM</td> <td>21</td> <td>ECE</td> </tr> </table> </body> </html> |
chevron_right
filter_none
Output:

Supported Browsers: The browser supported by HTML <table> border Attribute are listed below:
- Google Chrome
- Internet Explorer
- Firefox
- Safari
- Opera
Recommended Posts:
- HTML | border attribute
- HTML | <img> border Attribute
- HTML | <object> border Attribute
- HTML | DOM Style border Property
- HTML | for Attribute
- HTML | low Attribute
- HTML | max attribute
- HTML | <a> rel Attribute
- HTML | <img> src Attribute
- HTML | alt attribute
- HTML | <map> name Attribute
- HTML src attribute
- HTML | value Attribute
- HTML | dir Attribute
- HTML | rel attribute
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.



