The background-color property specifies the background color of an HTML element. background-color is a very useful CSS Property for creating attractive websites.
You can change the background of your website using the CSS background-color property.
{background-color :  red;}
                    
property            value
 
Here is a simple example of background-color property
Here we are changing the background-color of a <div> Tag.
On running the code you can see the purple background on <div> Tag.
<!DOCTYPE html>
<html>
	<head>
		<title>Button</title>
	</head>
<body>
<div style="background-color:purple;
padding:30px;color:white">
    TDB Tutorials
</div>
</body>
</html>
Black background-color
<!DOCTYPE html>
<html>
	<head>
		<style>
		.tdb-school{color:rgb(255,255,255);padding:10px 35px;
			border:none;border-radius:5px}
			.black{background-color:rgb(0,0,0)}
			.red{background-color:rgb(255,0,0)}
			.green{background-color:#008000}
			.blue{background-color:#0000ff}
		</style>
	</head>
	<!--Body-->
	<body>
		<button type="submit" class="black tdb-school">
		Press</button>
		<button type="submit" class="red tdb-school">
		Press</button>
		<button type="submit" class="green tdb-school">
		Press</button>
		<button type="submit" class="blue tdb-school">
		Press</button>
	</body>
</html>