Web/Html_Css
css3 색 color 활용1
Jaybon
2020. 3. 5. 15:36
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
|
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<style>
div {
margin-left: 30px;
margin-right: 30px;
margin-bottom: 10px;
color: white;
}
</style>
</head>
<body>
<h3>CSS3 색 활용</h3>
<hr>
<div style="background-color: deepskyblue;">deepskyblue(#00BFFF)</div>
<div style="background-color: brown;">brown(#A52A2A)</div>
<div style="background-color: fuchsia;">fuchsia(#FF00FF)</div>
<div style="background-color: darkorange;">darkorange(#FF8C)</div>
<div style="background-color: #008B8B;">darkcyan(#008B8B)</div>
<div style="background-color: #6B8E23;">oliverab(#6B8E23)</div>
</body>
</html>
|
cs |
위 태그를 적용하면 크롬에서 아래와 같이 나옵니다.