Making Tables
No, Web tables are competely different from the kind of table that you eat off of. But Web tables can be useful for organinzing and arranging the info on your Web page. First, I'd like to expain the tags used in tables.
<table>- Starts off a table.
You can also do the following: <table cellspacing="number" cellpadding="number" border="number"> The number will indicate the size of that specific feature, in pixels.
Example: A small table without cellspacing, cellpadding or border.
Example: A small table where each value is set to 1.
|
<tr> Starts off a table row. You may have as many of these in a table as you want, but you must put at least 1 table cell in each of them.
<td>-Starts off a table cell. The TD stands for "table division." Put as many cells within a row as you want. You don't even need to have the same amount in each row.
</td>- Ends a table cell.
</tr>- Ends a table row.
</table>- Ends a table.
Tables are useful for organizing data and aligning parts of your page. (Within table cells, you put normal HTML. You can even put a whole other table inside a table cell)
This page © Alan Gilfoy, 2004-2009.
|