-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.html
More file actions
50 lines (43 loc) · 1.23 KB
/
style.html
File metadata and controls
50 lines (43 loc) · 1.23 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
<!DOCTYPE html>
<html lang="pt-BR">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Representação de Cores no HTML</title>
<style>
/* Usando nome da cor */
.nome-cor {
background-color: red; /* Nome da cor */
color: white;
padding: 20px;
text-align: center;
}
/* Usando valor hexadecimal */
.hex-cor {
background-color: #00FF00; /* Valor hexadecimal */
color: black;
padding: 20px;
text-align: center;
}
/* Usando valor RGB */
.rgb-cor {
background-color: rgb(0, 0, 255); /* Valor RGB */
color: white;
padding: 20px;
text-align: center;
}
</style>
</head>
<body>
<h1>Exemplo de Representação de Cores no HTML</h1>
<div class="nome-cor">
Cor representada pelo nome: <strong>Red</strong>
</div>
<div class="hex-cor">
Cor representada pelo valor hexadecimal: <strong>#00FF00</strong>
</div>
<div class="rgb-cor">
Cor representada pelo valor RGB: <strong>rgb(0, 0, 255)</strong>
</div>
</body>
</html>