✅[html] ✅css 버튼 색(color)들, 배경색 속성
✅[html] ✅css 버튼 색(color)들, 배경색 속성
<!DOCTYPE html>
<html>
<head>
<style>
.button {
background-color: #4CAF50; /* Green */
border: none;
color: white;
padding: 15px 32px;
text-align: center;
text-decoration: none;
display: inline-block;
font-size: 16px;
margin: 4px 2px;
cursor: pointer;
}
.button2 {background-color: #008CBA;} /* Blue */
.button3 {background-color: #f44336;} /* Red */
.button4 {background-color: #e7e7e7; color: black;} /* Gray */
.button5 {background-color: #555555;} /* Black */
</style>
</head>
<body>
<h2>버튼 색(color)들</h2>
<p>배경색 속성을 사용하여 버튼의 배경색 변경 :</p>
<button class="button">초록색(green)</button>
<button class="button button2">파랑색(blue)</button>
<button class="button button3">빨강색(red)</button>
<button class="button button4">회색(gray)</button>
<button class="button button5">검정색(black)</button>
</body>
</html>