Posts

Project in Computer

How to combine or merge cells in an HTML table? You can merge two or more  table   cells together by using the   colspan   attribute in a   <td> HTML tag   (table data). For example, in the below code is a table with three   rows   and three   columns . If we wanted to combine the first two cells into one cell, we could use the colspan="2" attribute in the first <td> tag. The number represents how many cells you want to use for the <td> tag. Example HTML table <table> <tr> <td colspan="2">&nbsp;</td> <td>&nbsp;</td> </tr> <tr> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> </tr> <tr> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> </tr> </table> The above code, rendered in a web browser, produces a table similar to the t...