TUTORIALS » HTML / JavaScript » HTML essentials (guided tutorials)Tables in HTMLPage 5 of 6You are in page:» 5. Merging cells Merging cellsYou can merge two or more contiguous cells by using the colspan and rowspan attributes inside a<td>(or <th>) tag. This way you can accomplish tables like: The colspan attribute defines how many cells will be merged from left to right. The rowspan attribute defines how many cells will be merged from top to bottom.
Note that when we merge cells using colspan or rowspan, we have to omit the <td>tags that are being merged. Once you have practiced and mastered the merging of cells inside a table, continue to the next tutorial.
|
|
||||||||||||||||||||||||