|
Tables are the best way to pin down all the various images and blocks of text on your page. Simple tables can be quite easily written in HTML, but to write complex tables your best off using HTML authoring software, such as Dreamweaver, Netscape Composer, or Photoshop Slices. However even if your using software to write the code it helps if you understand the code as you'll quite likely want to edit it yourself afterwards. As tables are harder to get to grips with than other aspects of HTML I've divided this page into two, first explaining the tags and then explaining the properties that can be assigned to then. If you've never done tables it's best to do the tutorial first. |
| tag | FUNCTION | end tag | ||||
| <table> | defines a table. All the tables contents go between the tag and the end tag. | </table> | ||||
| <tr> |
A table is divided into rows and columns. <tr> defines a new row. Each row is broken up into cells which are defined by the <td> or table division tag and end tag. All the cells line up with the rows above and below to make columns. So to make a table of two rows and two columns like the one below right you would use the following tag code:
As you can see I've ascribed propertes to this table. I deal with this in th next bit |
</tr> | ||||
| <td> | </td> |
| tag | FUNCTION | end tag | |
| <table> |
Properties that can be assigned to <table> are:
|
</table> | |
| <tr> | Most properties are best assigned to the <table> or cell <td> tags, but some work on the <tr> tag. | </tr> | |
| <td> |
Properties that can be assigned to the <td> tag are:
|
</td> |
ON LINE JONES