| Table elements | ||
| border | ||
| rows (TR) | ||
| column details (TD) | ||
| Example: 2 rows (AB), 3 columns (123) TABLE | ||
| TR A TD 1 | TD 2 | TD 3 |
| TR B TD 1 | TD2 | TD 3 |
| /TABLE (required) |
| Some uses for tables |
| group together sets of items |
| line up multiple items in rows or columns |
| display tabular data |
| headers -- top or side |
| "magazine" layouts: margins, indents, callouts |
| text layouts |
| mix left and right alignments |
| different background colors, fonts, sizes |
| mini menus without graphics |
| unusual shapes across cells |
| dividing graphics for faster loading |
| Hints |
| percentage sizes: easier to program, slower to load |
| pixel sizes: harder to program, faster to load |
| don't start a file with a large table (slow to display) |
| TH is like TD with bold, centered text |
| tables use default font, not previous FONT tag |
| FONT tags if used may need to go in each cell |
| border=n (default=0) |
| cellpadding (within cells) |
| cellspacing (between cells) |
| Quick table: |
| 1. type data cells with tabs between |
| 2. Change line-ends to TR TD |
| 3. Change tabs to TD |
| 4. open and close TABLE tags |