<!DOCTYPE html>
<html>
<head>
<title>
Warna latar belakang tombol
</title>
<style>
body{
text-align: center;
}
button {
color:lightgoldenrodyellow;
font-size: 30px;
}
.b1 {
background-color: red;
}
.b2 {
background-color: blue;
}
.b3 {
background-color: violet;
}
</style>
</head>
<body>
<h1>Property background-color</h1>
<button class="b1">Tombol berwarna merah </button>
<button class="b2">Tombol berwarna biru </button>
<button class="b3">Tombol bewarna violet</button>
</body>
</html>
This Pen doesn't use any external CSS resources.
This Pen doesn't use any external JavaScript resources.