VOOZH about

URL: https://www.geeksforgeeks.org/html/how-to-merge-table-cells-in-html/

⇱ How to merge table cells in HTML ? - GeeksforGeeks


  • Courses
  • Tutorials
  • Interview Prep

How to merge table cells in HTML ?

Last Updated : 11 Jan, 2024

The purpose of this article is to explore the method of merging table cells in HTML using the rowspan and colspan attributes. By utilizing rowspan, multiple cells in a row can be merged or combined, while colspan enables the merging of cells in a column within an HTML table. This technique proves essential for creating visually organized and structured tables, and optimizing the presentation of data.

Example 1: Merge two table rows and make a single row.

Output:

👁 Image

Example 2: Merge two table column and make a single column.

Output:

👁 Image
Comment
Article Tags: