Using Tables

Information can be aligned on the page using tables, just like in a word processor.  You can use tables to create rows and columns.  Tables will adjust according to the size of the web browser.

There are three tags associated with tables:

<table> - creates the table
<tr> - defines a new row
<td> - defines a column within a row

Sample code for a table:

<table border="1">
	<tr>
		<td>row 1, cell 1</td>
		<td>row 1, cell 2</td>
	</tr>
	<tr>
		<td>row 2, cell 1</td>
		<td>row 2, cell 2</td>
	</tr>
</table>

Will display the following table:

row 1, cell 1 row 1, cell 2
row 2, cell 1 row 2, cell 2

Cells that are empty will not be shown, you can include a space to show them by using the &nbsp; special character.