Spanning Rows and Columns

In this lesson we see how to make use of spanning rows and columns in HTML.

We'll cover the following...
widget

Creating matrix-like tables is easy, but sometimes you need to create tables with a more complex layout. Two attributes of <td>, colspan and rowspan, allow you to specify the number of columns and rows a cell should span.

Let’s assume you want to create a table as shown below:

...