-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathaSecondTable.html
More file actions
94 lines (89 loc) · 2.09 KB
/
Copy pathaSecondTable.html
File metadata and controls
94 lines (89 loc) · 2.09 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
<!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(47, 146, 2);
}
.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 previous() {
window.location.href = "aFirstTable.html";
}
function next() {
window.location.href = "aThirdTable.html";
}
</script>
</style>
<body>
<div class="container">
<h1>🔥Html Homework🔥</h1>
</div>
<div class="Tablecontainer">
<table style="width: 100%;">
<tr>
<th>Name</th>
<th>Subject</th>
<th>Parts</th>
</tr>
<tr>
<td rowspan="5">SHIVA</td>
<td rowspan="2">Math</td>
<td>A</td>
</tr>
<tr>
<td>B</td>
</tr>
<tr>
<td rowspan="3">Science</td>
<td>A</td>
</tr>
<tr>
<td>B</td>
</tr>
<tr>
<td>C</td>
</tr>
<tr>
<td rowspan="4">RAM</td>
<td rowspan="2">Maths</td>
<td>A</td>
</tr>
<tr>
<td>B</td>
</tr>
<tr>
<td rowspan="2">Science</td>
<td>A</td>
</tr>
<tr>
<td>B</td>
</tr>
</table>
</div>
<div class="container">
<h2>👆Total 10 rows, 3 columns👆</h2>
<h4>Pages(2:6)</h4>
<button onclick="previous()">⬅ Previous page</button>
<button onclick="next()">Next page ➡</button>
</div>
</body>
</html>