Merge Table Rows - Html

How to merge table rows in HTML?

Snippet Code

Rate this page :
  [ 0 votes]

Table is created with the rows and columns. Row span is used to span (merge) two or more cells vertically in the table. Consider we have two rows and three columns. To span the cells in the column vertically, you have to save and run the code given below.

<table border='1' align='center'> <caption>Merge Table Rows</caption> <tr> <td>Data 1</td> <td rowspan=2>Data 2</td> <td>Data 3</td> </tr> <tr> <td>Data 4</td> <td>Data 5</td> </tr> </table>


Ask Questions

Ask Question