-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhtml_tag_table.html
127 lines (116 loc) · 2.21 KB
/
html_tag_table.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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
<!doctype html>
<html>
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Document</title>
<style>
body {
font-family: 'Courier New', Courier, monospace;
text-align: center;
background-color: #f0f0f0;
}
.container {
display: flex;
justify-content: center;
align-items: center;
}
table {
border-spacing: 5px;
caption-side: bottom;
empty-cells: hide;
table-layout: fixed;
}
th,
td {
padding: 10px;
border: 1px solid black;
border-collapse: collapse;
border-radius: 5px;
border-style: groove;
text-align: center;
}
td:nth-child(odd),
th:nth-child(odd) {
background-color: #d6eeee;
}
tr:hover {
background-color: aqua;
}
</style>
</head>
<body>
<h1>HTML Tag : Table</h1>
<div class="container">
<table>
<caption>
Table Caption
</caption>
<colgroup>
<col span="2" />
<col span="2" style="background-color: lightgreen" />
</colgroup>
<thead>
<tr>
<th>head-01</th>
<th>head-02</th>
<th>head-03</th>
<th>head-04</th>
<th>head-05</th>
<th>head-06</th>
</tr>
</thead>
<tbody>
<tr>
<td>data-11</td>
<td>data-12</td>
<td>data-13</td>
<td>data-14</td>
<td>data-15</td>
<td>data-16</td>
</tr>
<tr>
<td rowspan="2">data-21</td>
<td>data-22</td>
<td>data-23</td>
<td>data-24</td>
<td>data-25</td>
<td>data-26</td>
</tr>
<tr>
<td colspan="2">data-31</td>
<td>data-33</td>
<td>data-34</td>
<td>data-35</td>
</tr>
<tr>
<td>data-41</td>
<td>data-42</td>
<td>data-43</td>
<td>data-44</td>
<td>data-45</td>
<td>data-46</td>
</tr>
<tr>
<td>data-51</td>
<td>data-52</td>
<td>data-53</td>
<td>data-54</td>
<td>data-55</td>
<td>data-56</td>
</tr>
</tbody>
<tfoot>
<tr>
<th>foot-01</th>
<th>foot-02</th>
<th>foot-03</th>
<th>foot-04</th>
<th></th>
<th>foot-06</th>
</tr>
</tfoot>
</table>
</div>
</body>
</html>