This repository was archived by the owner on Jul 7, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 19
/
Copy pathtask3.html
79 lines (68 loc) · 1.64 KB
/
task3.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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Table</title>
<style>
table,td,tr{
border: 2px solid black;
text-align: center;
border-collapse: collapse;
min-width: 75px;
font-weight: bold;
margin-left: auto;
margin-right: auto;
margin-top: 250px;
}
.o{
background-color: orange;
}
.b{
background-color: rgb(1, 183, 255);
}
.g{
background-color: rgb(8, 196, 8);
}
.y{
background-color: yellow;
}
.txt{
background-color: gray;
color: white;
}
</style>
</head>
<body>
<table>
<tr>
<td class="o">10</td>
<td class="b">20</td>
<td class="b">30</td>
<td class="g">4</td>
</tr>
<tr>
<td class="o">50</td>
<td colspan="2" class="txt">Colored Table</td>
<td class="g">6</td>
</tr>
<tr>
<td class="o">70</td>
<td rowspan="2" class="y">80</td>
<td rowspan="2" class="y">90</td>
<td class="g">10</td>
</tr>
<tr>
<td class="o">110</td>
<td class="g">12</td>
</tr>
<tr>
<td class="o">130</td>
<td class="b">140</td>
<td class="b">150</td>
<td class="g">16</td>
</tr>
</table>
</body>
</html>