HTML Tables Tutorial

Page 26 - Nested Tables


To nest a table in a table you simply code a table as the content of a <td>.
<table border="1">
   <tr>
      <td>Cell #1</td>
      <td>Cell #2</td>
   </tr>
   <tr>
      <td>Cell #3</td>
      <td>
          <table border="1" bgcolor="#ccccff">
             <tr>
                <td>Cell A</td>
                <td>Cell B</td>
             </tr>
             <tr>
                <td>Cell C</td>
                <td>Cell D</td>
             </tr>
          </table>
      <td>
   </tr>
</table>
=
Cell #1 Cell #2
Cell #3
Cell A Cell B
Cell C Cell D
 
 
MPF.com Site Map