How do you merge tables in HTML?

Query By: MIKE JM

S

Simran Rana

Merge Table in HTML

The merged table is created in HTML by using the RowSpan and Colspan attributes in <td> tag. The "Rowspan" is used to merge row cells in an HTML table likewise the "Colspan" is used to merge column cells in a table.  


Merge Table Example in HTML

<table>

    <tr>

        <th>One</th>

        <th>Two</th>

    </tr>

    <tr>

        <td colspan="2">One + Two</td>

    </tr>

</table>

1 votes

Your Answer

Email Us: advertise@gdatamart.com

Donate Us: Support to GDATAMART

LifeStyle & Fun

© 2024 GDATAMART.COM (All Rights Reserved)