-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathaFirstTable.html
More file actions
101 lines (88 loc) · 2.5 KB
/
Copy pathaFirstTable.html
File metadata and controls
101 lines (88 loc) · 2.5 KB
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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>HTML Homework</title>
</head>
<style>
body {
background-color: rgb(228, 228, 189);
}
.container {
width: 400px;
margin: 0 auto;
text-align: center;
}
.Tablecontainer {
width: 600px;
margin: 0 auto;
text-align: center;
}
table,
th,
td {
border: 1px solid black;
border-collapse: collapse;
}
</style>
<script>
function next() {
window.location.href = "aSecondTable.html";
}
</script>
<body>
<div class="container">
<h1>🔥Html Homework🔥</h1>
</div>
<div class="Tablecontainer">
<table style="width: 100%;">
<tr style="background-color: greenyellow;">
<td>1</td>
<td></td>
<td colspan="2">ColumnSpan="2"</td>
<td colspan="2">ColumnSpan="2"</td>
</tr>
<tr style="background-color: bisque;">
<td>2</td>
<td></td>
<td rowspan="3" colspan="2">RowSpan="3"<br>ColumnSpan="2"</td>
<td rowspan="5" colspan="2">RowSpan="5"<br>ColumnSpan="2"</td>
</tr>
<tr style="background-color: red;">
<td>3</td>
<td></td>
</tr>
<tr style="background-color: yellow;">
<td>4</td>
<td rowspan="5">RowSpan="5"</td>
</tr>
<tr style="background-color: blue;">
<td>5</td>
<td colspan="2">ColumnSpan="2"</td>
</tr>
<tr style="background-color: darkorange;">
<td>6</td>
<td colspan="2">ColumnSpan="2"</td>
</tr>
<tr style="background-color: darkgrey;">
<td>7</td>
<td></td>
<td colspan="2">ColumnSpan="2"</td>
<td colspan="1">null</td>
</tr>
<tr style="background-color: darkgray;">
<td>8</td>
<td></td>
<td colspan="2">ColumnSpan="2"</td>
<td colspan="1">null</td>
</tr>
</div>
</table>
<div class="container">
<h2>👆Total 8 rows, 6 columns👆</h2>
<h4>Pages(1:6)</h4>
<button onclick="next()">Next page ➡</button>
</div>
</body>
</html>