Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
<!DOCTYPE html>
<html lang="en">
<meta charset="utf-8" />
<title>Table with colspan and rowspan</title>
<link rel="stylesheet" href="css/table-with-colspan-rowspan.css" />
<caption>TV Schedule</caption>
<thead> <!-- table head -->
<th scope="rowgroup">Time</th>
<th scope="col">Mon</th>
<th scope="col">Tue</th>
<th scope="col">Wed</th>
<tbody> <!-- table body -->
<th scope="row">8 pm</th>
<td>Staring Contest</td>
<td colspan="2">Celebrity Hoedown</td>
<th scope="row">9 pm</th>
<td>Hardy, Har, Har</td>
<td>What's for Lunch?</td>
<td rowspan="2">Screamfest Movie of the Weak</td>
<th scope="row">10 pm</th>
<td>Healers, Wheelers &amp; Dealers</td>
<td>It's a Crime</td>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.