Which attribute is used with TD tag to merge two cells horizontally

  1. Mergr=colspan2

  2. Rowspan=”2″

  3. Colspan=”2″

Show Answer

Colspan=”2″

To merge cells in HTML, we use the colspan and rowspan attributes. While the colspan attribute determines how many columns a cell should merge, the row span attribute specifies how many rows a cell should merge. The attribute needs to be contained within the td> tag.

You can also check:

 

Leave a Reply

Your email address will not be published. Required fields are marked *