CSS Set background Color Code For Website - Learn About Website | DaddyFile

0

Background Color Explain

The background-color property specifies the background color of an element.
The background color of a page is set like this.



Html Code:

<!DOCTYPE html>
<html>
<head>
<style>
body {
    background-color: lightblue;
}
</style>
</head>
<body>

<h1>Hello World!</h1>

<p>This page has a background color!</p>

</body>
</html>




Html Code Result:


Post a Comment

 
Top