/
Table examples
71 lines (71 loc) · 1.17 KB
/
Table examples
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
<!DOCTYPE html>
<html>
<head>
<title>Code Example</title>
<style>
table , td {
border:1px solid #444;
}
table{
width:100%;
}
td{
width:33%;
}
thead {
color:white;
background-color:black;
}
tfoot{
text-align:center;
}
</style>
</head>
<body>
<div class="output"></div>
<table>
<colgroup>
<col span="2" style="background-color: red;">
<col style="background-color: blue;">
</colgroup>
<thead>
<tr>
<th colspan="3">My Data</th>
</tr>
</thead>
<tbody>
<tr>
<td>One</td>
<td>Two</td>
<td>Three</td>
</tr>
<tr>
<td>One</td>
<td>Two</td>
<td>Three</td>
</tr>
<tr>
<td>One</td>
<td>Two</td>
<td>Three</td>
</tr>
</tbody>
<tfoot>
<tr>
<td colspan="3">Footer</td>
</tr>
</tfoot>
</table>
<hr>
<table>
<tr>
<td>Test 1</td>
<td>Test 2</td>
</tr>
<tr>
<td>Test 1</td>
<td>Test 2</td>
</tr>
</table>
</body>
</html>