TOP CATEGORIES

×

How do you merge tables in HTML?

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: advertise@gdatamart.com

Donate: To Support US

© 2024 GDATAMART.COM (All Rights Reserved)