HTML Tables Tutorial

Page 10 - <table> bordercolor


It is also possible to specify the color of a table's border. There is no easy way to determine the default color of a table border, it varies from computer to computer. Therefore if you plan on using a border you should also specify its color. Borders and background color are treated differently in Netscape and Internet Explorer, so be sure to cross browser check.
<table border="1">
   <tr>
      <td>Cell #1</td>
      <td>Cell #2</td>
   </tr>
   <tr>
      <td>Cell #3</td>
      <td>Cell #4</td>
   </tr>
</table>
=
Cell #1 Cell #2
Cell #3 Cell #4

<table border="1" bordercolor="#ff0000">
   <tr>
      <td>Cell #1</td>
      <td>Cell #2</td>
   </tr>
   <tr>
      <td>Cell #3</td>
      <td>Cell #4</td>
   </tr>
</table>
=
Cell #1 Cell #2
Cell #3 Cell #4
 
 
MPF.com Site Map