-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathQuestion 3b.html
43 lines (43 loc) · 1.86 KB
/
Question 3b.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
<!DOCTYPE html>
<html lang="en">
<head>
<style>
table {
border-collapse: collapse;
width: 100%;
}
th, td {
border: 3px double black;
padding: 8px;
text-align: center;
}
</style>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
</head>
<body>
<table style="border-collapse: collapse; width: 100%;">
<tr>
<th colspan="4" style="border: 3px double black; padding: 8px; text-align: center;">TABLE HEADING SPANNING 4 COLUMNS</th>
</tr>
<tr>
<td style="border: 3px double black; padding: 8px; text-align: center;">Normal Cell</td>
<td colspan = "2" style="border: 3px double black; padding: 8px; text-align: center;">CELL SPANNING 2 COLUMNS</td>
<td style="border: 3px double black; padding: 8px; text-align: center;">Normal Cell</td>
</tr>
<tr>
<td rowspan="3" style="border: 3px double black; padding: 8px; text-align: center; background-color: lightgray;">Cell spanning 3 Rows with Gray Background</td>
<td style="border: 3px double black; padding: 8px; text-align: center;">Normal Cell</td>
<td style="border: 3px double black; padding: 8px; text-align: center;">Normal Cell</td>
<td style="border: 3px double black; padding: 8px; text-align: center;">Normal Cell</td>
</tr>
<tr>
<td style="border: 3px double black; padding: 8px; text-align: center;">Normal Cell</td>
<td colspan="2" rowspan="2" style="border: 3px double black; padding: 8px; text-align: center;">Cell spanning 2 rows and 2 Columns</td>
</tr>
<tr>
<td style="border: 3px double black; padding: 8px; text-align: center;">Normal Cell</td>
</tr>
</body>
</html>