-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcolors.html
25 lines (25 loc) · 921 Bytes
/
colors.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta http-equiv="X-UA-Compatible" content="ie=edge" />
<title>CSS Colors</title>
<style>
div {
margin-bottom: 20px;
}
</style>
</head>
<body>
<h1>CSS Color Values</h1>
<hr />
<div style="color: red">keyword <code>color: red</code></div>
<div style="color: #FF0000">6 Hex <code>color: #FF0000</code></div>
<div style="color: #F00">3 Hex <code>color: #F00</code></div>
<div style="color: rgb(255,0,0)">RGB <code>color: rgb(255,0,0)</code></div>
<div style="color: rgba(255,0,0,0.5)">RGB+Alpha <code>color: rgba(255,0,0,0.5)</code></div>
<div style="color: hsl(360,100%, 50%)">HSL <code>hsl(360,100%,50%)</code></div>
<div style="color: hsla(360,100%, 50%,0.5)">HSL+Alpha<code>hsla(360,100%,50%,0.5)</code></div>
</body>
</html>