Table Spans and Headers
Rowspan Schedule
One Header Covers Two Rows
A small schedule table uses rowspan so one Monday header applies to two time slots without repeating the same label.
Program
Row spans merge cells vertically. They are useful when one row header describes several adjacent data rows.
rowspan_schedule.html
<table>
<tr><th>Day</th><th>Time</th><th>Task</th></tr>
<tr><th rowspan="2" scope="rowgroup">Monday</th><td>09:00</td><td>Review</td></tr>
<tr><td>11:00</td><td>Deploy</td></tr>
</table>
rowspan
The rowspan attribute lets a cell occupy more than one row.
rowgroup scope
scope="rowgroup" marks a header that labels a group of rows.