Rowspan and Colspan in HTML Table
Type this code in text editor and save with .html extension
--------------------------------------------------------
<!doctype html>
<html>
<table border="1" align="center" cellpadding="6px" width="50%">
<tr>
<th colspan="6">Time Table</th>
</tr>
<tr>
<th rowspan="6">Hours</th>
<th>Mon</th>
<th>Tue</th>
<th>Wed</th>
<th>Thu</th>
<th>Fri</th>
</tr>
<tr>
<td>Computer </td>
<td>Maths</td>
<td>Computer</td>
<td>Maths</td>
<td>Arts</td>
</tr>
<tr>
<td>Computer</td>
<td>Maths</td>
<td>Computer</td>
<td>Maths</td>
<td>Arts</td>
</tr>
<tr>
<th colspan="5">LUNCH</th>
</tr>
<tr>
<td>Computer</td>
<td>Maths</td>
<td>Computer</td>
<td>Maths</td>
<td rowspan="2">Project</td>
</tr>
<tr>
<td>Computer</td>
<td>Maths</td>
<td>Computer</td>
<td>Maths</td>
</tr>
</table>
</html>
--------------------------------------------------------
Output-
0 Comments