Tables....

Here is a table, all rows

I am a row
I am a row
I am a row

here is a table, all columns

I am a column I am a column I am a column

 

Tables start simple, get complex quickly. Here is the basic code.

 

<table>
  <tr>
     <td>
       Contents of table cell
     </td>
   </tr>
</table>

this builds this

Contents of table cell

not very interesting. but this

<table>
  <tr>
     <td>
       Contents of table cell
     </td>
      <td>
       Contents of table cell
     </td>
   </tr>
</table>

builds this

Contents of table cell Contents of table cell

and this

<table>
  <tr>
     <td>
       Contents of table cell
     </td>
      <td>
       Contents of table cell
     </td>
   </tr>
 <tr>
     <td>
       Contents of table cell
     </td>
      <td>
       Contents of table cell
     </td>
   </tr>
</table>

builds this

Contents of table cell Contents of table cell
Contents of table cell Contents of table cell

and this

<table>
  <tr>
     <th>
       Contents of header cell
     </th>
      <th>
       Contents of header cell
     </th>
   </tr>
<tr>
     <td>
       Contents of table cell
     </td>
      <td>
       Contents of table cell
     </td>
   </tr>
 <tr>
     <td>
       Contents of table cell
     </td>
      <td>
       Contents of table cell
     </td>
   </tr>
</table>

builds this

Contents of header cell Contents of header cell
Contents of table cell Contents of table cell
Contents of table cell Contents of table cell

next