-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathspanning-rows-table.html
More file actions
59 lines (57 loc) · 1.58 KB
/
Copy pathspanning-rows-table.html
File metadata and controls
59 lines (57 loc) · 1.58 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
<!DOCTYPE html>
<html lang="pt-BR">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Linhas Abrangentes em uma Tabela</title>
<style>
table {
width: 30%;
border-collapse: collapse;
margin: 20px 0;
}
th, td {
border: 1px solid black;
padding: 10px;
text-align: center;
}
th {
background-color: rgb(88, 194, 243);
}
tr:nth-child(even) {
background-color: #f2f2f2;
}
</style>
</head>
<body>
<h1>Membros da Equipe</h1>
<table>
<tr>
<th>Nome</th>
<th>Cargo</th>
</tr>
<tr>
<td rowspan="3">Ana Souza</td>
<td>Gerente de Projetos</td>
</tr>
<tr>
<td>Analista de Dados</td>
</tr>
<tr>
<td>Supervisor de TI</td>
</tr>
<tr>
<td>Lucas Pereira</td>
<td>Desenvolvedor Front-End</td>
</tr>
<tr>
<td>Mariana Lima</td>
<td>Designer UX/UI</td>
</tr>
</table>
<hr>
<h3>O que é o atributo <code>rowspan</code>?</h3>
<p>O atributo <code>rowspan</code> permite que uma célula (<code><td> ocupe várias linhas em uma tabela</code></p>
<p>Por exemplo, no caso da Ana Souza, a célula do nome dela usa <code>rowspan="3", fazendo com que seu nome cubra três linhas diferentes, enquanto cada linha mostra um cargo distinto.</code></p>
</body>
</html>