ptg16476052Spanning Multiple Rows or Columns 26710
This cell spans
two rowsThis cell spans rows and two columnsThis cell spans two columnsTo create a cell that spans multiple rows or columns, you add the rowspan or colspan
attribute to the
want the cell to span. The data within that cell then fills the entire width or length of the
combined cells, as in the following example:
Input ▼
<!DOCTYPE html>
| Gender | |
|---|---|
| Male | Female |
| 15 | 23 |
Figure 10.20 shows how this table might appear when displayed.
FIGURE 10.19
Using span set-
tings to alter table
layout.