table border


<table border="">

Browser
Internet Explorer Firefox Opera
Type
Block-level

The border attribute of the TABLE element specifies the border width of a table.


<table border="3">


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>

Tips and Notes

This can be specified with CSS. Please see the "Related Document" for details on CSS.

(However, the border style is different.)


Example

The value was omitted

<table border>
<tr>
<td>Cell A</td>
<td>Cell B</td>
<td>Cell C</td>
</tr>
</table>
Output
Cell A Cell B Cell C

The border size is 1

<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

The border size is 5

<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

The border size is 10

<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

The border size is 0

<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