Table 1 Example | |||||||
Cellpadding
cellspacing border rowspan colspan align valign |
Tables control Web page layout |
![]() |
|
Tables are controlled with the attributes cellpadding (how much padding surrounds the content inside a cell); cellspacing (how much space appears between adjacent cells) and border (the width of the lines between cells). All three are measured in pixles. These attributes appear inside the TABLE tag. | |||
The attributes rowspan and colspan allow one cell to span more than one row or column. These attributes appear inside the Td tag. | |||||||
Finally, postioning of elements within a table cell is controlled by align (left, center, right) and valign (top, middle, bottom. These attributes also appear inside the TD tag. The ram knows this. |