|
Tables are used to organize and contain content. The basic table tags are: <table> Is used to make a table. <tr> Stands for "Table Row" Makes a new row in the table. <td> Stands for "Table Data" Makes a cell in the table. The table structure is like this: <table border="3"> <tr> <td>cell 1</td> <td>cell 2</td> </tr> <tr> <td>cell 3</td> <td>cell 4</td> </tr> </table> That goes on to look like this:
If you add the caption tag (<caption>) to your table it will look like this: <table border="3"> <caption> Table </caption> <tr> <td>cell 1</td> <td>cell 2</td> </tr> <tr> <td>cell 3</td> <td>cell 4</td> </tr> </table>
|