Background Color

Background Color:

This property specifies the background color of an element.

Example
<!DOCTYPE html>

<html>

<head>

<style>

h2{background-color:pink}

</style>

</head>

<body>
<h2>welcome</h2>
</body>

</html>

Output

welcome

 

Leave a Reply

Your email address will not be published. Required fields are marked *