<!DOCTYPE html>
<html>
<head>
<title>HTML Table Example</title>
</head>
<body>
<table border="1" bordercolor="blue" bgcolor="pink">
<tr>
<td align="center">Row 1, Column 1</td>
<td align="center">Row 1, Column 2</td>
</tr>
<tr>
<td align="center">Row 2, Column 1</td>
<td align="center">Row 2, Column 2</td>
</tr>
</table>
</body>
</html>
<!DOCTYPE html>
<html>
<head>
<title>HTML Table Header Example</title>
</head>
<body>
<table border="1">
<tr>
<th>Subject</th>
<th>Total marks</th>
</tr>
<tr>
<td>Math</td>
<td>100</td>
</tr>
<tr>
<td>Science</td>
<td>100</td>
</tr>
</table>
</body>
</html>
<!DOCTYPE html>
<html>
<head>
<title>HTML Table Colspan & Rowspan Example</title>
</head>
<body>
<table border="1">
<tr>
<th>Column 1</th>
<th>Column 2</th>
<th>Column 3</th>
<th>Column 4</th>
</tr>
<tr>
<td rowspan="2">Row 1 Cell 1</td>
<td>Row 1 Cell 2</td>
<td>Row 1 Cell 3</td>
<td>Row 1 Cell 4</td>
</tr>
<tr>
<td>Row 2 Cell 2</td>
<td>Row 2 Cell 3</td>
<td>Row 2 Cell 4</td>
</tr>
<tr>
<td colspan="4">Row 3 Cell 1</td>
</tr>
</table>
</body>
</html>
<!DOCTYPE html>
<html>
<head>
<title>HTML Table Cellspacing & Cellpadding Example</title>
</head>
<body>
<table border="1" cellpadding="10" cellspacing="4">
<tr>
<th>Subject</th>
<th>Total marks</th>
</tr>
<tr>
<td>Math</td>
<td>100</td>
</tr>
<tr>
<td>Science</td>
<td>100</td>
</tr>
</table>
</body>
</html>
<!DOCTYPE html>
<html>
<head>
<title>HTML Table width, hight and caption Example</title>
</head>
<body>
<table border="1" width="300" height="100">
<caption>Employee Details</caption>
<tr>
<th>Name</th>
<th>Salary</th>
</tr>
<tr>
<td>Varun Rathi</td>
<td>7000</td>
</tr>
<tr>
<td>Nitesh Singh</td>
<td>8000</td>
</tr>
</table>
</body>
</html>