| <TABLE>...</TABLE>
|
Surrounds all other table
tags
|
| <TR>...</TR> |
Table Row surrounds all
TD cell tags in the same row
|
| <TD>...</TD> |
Table Data cell creates
a data cell within a row.
|
For example: A basic 2x2 table
Note: The border tag with table makes the table visible. Without it the borders
disappear.
<table border>
<tr>
<td>A</td> <td>B</td>
</tr>
<tr>
<td>C</td> <td>D</td> <td>
</tr>
</table>
What can go inside a table data cell? <TD> ...<TD>
- text
- image tag
- linking tag (A HREF)
- Headings
- formatting tags (i.e. bold)
- color tags
- HR
- BR or P tags
- lists
- another table.
- Spacing tags such as <SPACER Type=Horizontal Size="10">
- <SPACER Type=Vertical Size="SpaceInPixels">
Experiment with other tags.
Optional Table Tags
|
|
| <TH>...</TH> |
Used within the first TR
tags of a table as headings. Text within them will be bold.
|
| <CAPTION>...</CAPTION> |
Used after the first Table
tag, before any TR tag. Places a caption or table title within the table.
|
See additional examples in Netscape Sampler exercises.
Return to Tables and Frames Tutorial