Deve.haeri

[CSS/기본] Color 속성 본문

HTML-CSS

[CSS/기본] Color 속성

hhaeri 2020. 11. 8. 22:20

1. Color

 1) 16진수 : #ff0000

 2) RGB 값 : rgb(0, 255, 0)

 3) 색상 명 : red

<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
<style type = "text/css">
	body{
		background-image : url(../assets/images/pets.jpg)
	}
	h1{
		color: #ff0000;/* red */
	}
	#hi{
		color: rgb(0, 255, 0); /* green */
	}
	#hello{
		color : rgba(0,255,0,0.9) /* opacity(투명도) : 0.9*/
	}

</style>
</head>
<body>

	<h1>안녕하세요.</h1>
	<h1 id = "hi">반갑습니다.</h1>
	<h1>어서오세요.</h1>
	<h1>감사합니다.</h1>
	<h1>사랑합니다.</h1>

</body>
</html>

'HTML-CSS' 카테고리의 다른 글

[CSS/기본] Text  (0) 2020.11.08
[CSS/기본] Unit  (0) 2020.11.08
[CSS/기본] Style 방식  (0) 2020.11.08
[HTML/기본] Form 태그  (0) 2020.11.06
[HTML/기본] Table 태그  (0) 2020.11.06
Comments