border=1 cellspacing=1 cellpadding=1
| one | two | three |
| four | five | six |
| seven | eight | nine |
border=10 cellspacing=1 cellpadding=1
| one | two | three |
| four | five | six |
| seven | eight | nine |
border=1 cellspacing=10 cellpadding=1
| one | two | three |
| four | five | six |
| seven | eight | nine |
border=1 cellspacing=1 cellpadding=10
| one | two | three |
| four | five | six |
| seven | eight | nine |
border=1 cellspacing=5 cellpadding=5
| one | two | three |
| four | five | six |
| seven | eight | nine |
border=0 cellspacing=5 cellpadding=5
| one | two | three |
| four | five | six |
| seven | eight | nine |
border=1 cellspacing=5 cellpadding=5 bgcolors
| one | two | three |
| four | five | six (more text widens columns) |
| seven | eight | nine |
border=1 cellspacing=5 cellpadding=5 width=300
Note how the empty cell is displayed.
| width=100 | width=100 | width=100 |
| four | five | six |
| seven | eight |
border=1 cellspacing=5 cellpadding=5 width=300 col & row spans
| colspan=2 | three | |
| four | five | rowspan=2 |
| seven | eight | |
border=1 cellspacing=5 cellpadding=5 width=300 height=200
| Center Aligned | ||
| vertical alignment (valign) set to top | vertical alignment set to middle (default) | vertical alignment set to bottom |
border=1 cellspacing=5 cellpadding=5 table headings (th)
| one | two | three |
|---|---|---|
| four | five | six |
| seven | eight | nine |
border=0 cellspacing=0 cellpadding=0 width=330
3-cell borderless table used for layout to arrange smaller tables
|
|
|
| Using Tables for Layout | ||||||||
| Using borderless tables is a common trick for arranging text, graphics, and other tables on a page in a specific layout | ![]() Picture of the rotating Earth globe |
|
||||||