The background-color property is represents the background color of the text. The background include padding and border but not include the margin.
Example of Code
<style>
#example-CSS-Background-Color-div{
padding: 20px;
background-color: yellow;
}
</style>
<div id="example-CSS-Background-Color-div">
This 'div' has a background color applied.
</div>
Output
This 'div' has a background color applied.