This is an ad.
 
Webmonkey Kids
Webmonkey Kids
Lessons
Projects
Playground
Tools

Introduction
icon Rows and Cells
Building Your First Table
Colspan
Rowspan
Alignment
Spacing and Padding
A Few More Tricks



Parents and Teachers:
Find out how your kids can use Webmonkey for Kids as a learning tool at home or in the classroom with our Planning Guide.

Send us feedback

Lesson A: Tables
Rowspan


ou can also do this:

    Cell 1 Cell 2
    Cell 3

Just add rowspan=2 to the <td>, like so:

    <table border>

    <tr>
    <td rowspan=2>Cell 1</td>
    <td>Cell 2</td>
    </tr>

    <tr>
    <td>Cell 3</td>
    </tr>

    </table>

See? "Rowspan=2" means the cell should span across two rows. Just remember that rows run horizontally and columns run vertically. So if you want to stretch a cell horizontally, use colspan. To stretch a cell vertically, use rowspan.

Back

Next Page