How to marge two columns of table

Home / Answer

How to marge two columns of table

Author | Asked on 2024-09-20 | • HTML, CSS

Hi,

I want to marge two columns in my data table. I am trying to use colspan in my table. But not working. 

Can you please help me?

authorTapGen replied on 2024-09-21

you can do that with HTML Table colspan and rowspan

Here is the example

<table border="1">
  <tr>
    <td colspan="3">This cell spans 3 columns</td>
  </tr>
  <tr>
    <td>Cell 1</td>
    <td>Cell 2</td>
    <td>Cell 3</td>
  </tr>
</table>

You can learn more with our tutorial about HTML Table Colspan and Rowspan

#tapgen

Please login your account for replying

Do you want to get the latest update?