<table border="">
Browser |
|
---|---|
Type |
The border attribute of the TABLE element specifies the border width of a table.
<table border="3"></table>
Attribute | Value | Explanation |
---|---|---|
border=" " | pixels | the size of the border |
The value can be omitted. (The border width becomes the same as size 1.)
<table border>
Example
<table border>
<tr>
<td>Cell A</td>
<td>Cell B</td>
<td>Cell C</td>
</tr>
</table>
- Output
-
Cell A Cell B Cell C
<table border="1">
<tr>
<td>Cell A</td>
<td>Cell B</td>
<td>Cell C</td>
</tr>
</table>
- Output
-
Cell A Cell B Cell C
<table border="5">
<tr>
<td>Cell A</td>
<td>Cell B</td>
<td>Cell C</td>
</tr>
</table>
- Output
-
Cell A Cell B Cell C
<table border="10">
<tr>
<td>Cell A</td>
<td>Cell B</td>
<td>Cell C</td>
</tr>
</table>
- Output
-
Cell A Cell B Cell C
<table border="0">
<tr>
<td>Cell A</td>
<td>Cell B</td>
<td>Cell C</td>
</tr>
</table>
- Output
-
Cell A Cell B Cell C