HTML ROWSPAN and COLSPAN

 

4. ROWSPAN and COLSPAN

  • ROWSPAN: Merges multiple rows into a single cell.
  • COLSPAN: Merges multiple columns into a single cell.

Example (ROWSPAN and COLSPAN):

<table border="1"> <tr> <th>Column 1</th> <th>Column 2</th> <th>Column 3</th> </tr> <tr> <td rowspan="2">Rowspan Cell</td> <td>Cell 2</td> <td>Cell 3</td> </tr> <tr> <td colspan="2">Colspan Cell</td> </tr> </table>

Comments

Popular posts from this blog

Introduction to Computer

History of Computer

Computer Generation