HTML tables can include cells that extend across multiple rows and/or columns.
Example
<table> <tr> <th colspan=”2″>Name</th> <th>Age</th> </tr> <tr> <td>Jill</td> <td>Smith</td> <td>43</td> </tr> <tr> <td>Eve</td> <td>Jackson</td> <td>57</td> </tr> </table> |
Certainly! The number indicated by the “colspan” attribute signifies the amount of columns to extend across. |
To have a cell cover multiple rows, employ the “rowspan” attribute.
Example
<table> <tr> <th>Name</th> <td>Jill</td> </tr> <tr> <th rowspan=”2″>Phone</th> <td>555-1234</td> </tr> <tr> <td>555-8745</td> </tr> </table> |
Keep in mind: The “rowspan” attribute’s value denotes the quantity of rows to encompass. |