-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtabela002.html
165 lines (153 loc) · 4.11 KB
/
tabela002.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
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
<!DOCTYPE html>
<html lang="pt-br">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Tabelas</title>
<style>
body{
font-family: Verdana, Geneva, Tahoma, sans-serif;
}
table {
width: 500px;
border-collapse: collapse;
position: relative;
}
td, th {
border: 2px solid black;
padding: 10px;
}
caption {
font-size: 1em;
font-weight: bold;
padding: 10px;
background-color: rgba(0, 0, 0, 0.116);
}
thead, tfoot {
background-color: slategrey;
color: white;
}
thead > tr > th {
position: sticky;
top: -1px;
}
tbody tr:nth-child(2n) { /* Efeito zebra de 2 em 2 linhas*/
background-color: rgba(0, 0, 0, 0.116);
}
td.num {
text-align: right;
}
th {
background-color: slategrey ;
color: white;
}
</style>
</head>
<body>
<h1>Uso de Tabelas Grande</h1>
<!--
ANATOMIA PARA TABELAS GRANDES
TABLE
CAPTION
THEAD
TR, TD, TH
TBODY
TR, TD, TH
TFOOT
TR, TD, TH
-->
<table>
<thead>
<caption>População das Unidades Federativas</caption>
<tr>
<th scope="col">Estado</th>
<th scape="col" style="width: 120px;">População</th>
</tr>
</thead>
<tbody>
<tr>
<td>São Paulo</td>
<td class="num">41 262 199</td>
</tr>
<tr>
<td>Minas Gerais</td>
<td class="num">19 597 330</td>
</tr>
<tr>
<td>Rio de Janeiro</td>
<td class="num">15 989 929</td>
</tr>
<tr>
<td>Bahia</td>
<td class="num">14 016 906</td>
</tr>
<tr>
<td>Paraná</td>
<td class="num">10 444 526</td>
</tr>
<tr>
<td>Rio Grande do Sul</td>
<td class="num">10 693 929</td>
</tr>
<tr>
<td>Pernambuco</td>
<td class="num">8 796 448</td>
</tr>
<tr>
<td>Ceará</td>
<td class="num">8 452 381</td>
</tr>
<tr>
<td>Pará</td>
<td class="num">7 581 051</td>
</tr>
<tr>
<td>Santa Catarina</td>
<td class="num">6 248 436</td>
</tr>
<tr>
<td>São Paulo</td>
<td class="num">41 262 199</td>
</tr>
<tr>
<td>Minas Gerais</td>
<td class="num">19 597 330</td>
</tr>
<tr>
<td>Rio de Janeiro</td>
<td class="num">15 989 929</td>
</tr>
<tr>
<td>Bahia</td>
<td class="num">14 016 906</td>
</tr>
<tr>
<td>Paraná</td>
<td class="num">10 444 526</td>
</tr>
<tr>
<td>Rio Grande do Sul</td>
<td class="num">10 693 929</td>
</tr>
<tr>
<td>Pernambuco</td>
<td class="num">8 796 448</td>
</tr>
<tr>
<td>Ceará</td>
<td class="num">8 452 381</td>
</tr>
<tr>
<td>Pará</td>
<td class="num">7 581 051</td>
</tr>
</tbody>
<tfoot>
<tr>
<th scope="row">Total de Habitantes</th>
<td class="num"><strong>143 083 135</strong></td>
</tr>
</tfoot>
</table>
</body>
</html>