| [ Prev ] [ Index ] [ Next ] |
| Breakfast | Lunch | Dinner | |
|---|---|---|---|
| Kitchen | 26 | 23 | 30 |
| Dining Room | 35 | 31 | 45 |
An HTML table begins/ends with <TABLE>..</TABLE> tags, and
can contain:
TABLE-ROWS (defined within opening/closing TR tags),
TABLE-HEADER cells (in opening/closing TH tags) and
TABLE-DATA cells (in opening/closing TD tags).
It can also include a caption if desired
(set between <CAPTION>..</CAPTION> tags).
| Breakfast | Lunch | Dinner | |
|---|---|---|---|
| Kitchen | 26 | 23 | 30 |
| Dining Room | 35 | 31 | 45 |
TR and TD cells are left-aligned by default (with TH cells centred), but all cells can be separately aligned to the left\center\right by adding an ALIGN attribute to any individual TR, TH or TD tag.
Among the table-tag's attributes is BORDER (=0 by default). When set to 2 the tabel shows a border as above, but when 0 or omitted the cells appear unbounded as follows:
| Breakfast | Lunch | Dinner | |
|---|---|---|---|
| Kitchen | 26 | 23 | 30 |
| Dining Room | 35 | 31 | 45 |