background-color

The background-color property property is used to set up the background color of the box.

The possible values for css color specifications are:

ValuesDescription
named colorblue
rgb/ hslrgb(100, 200, 0)
hexadecimal#00ff00
transparentdefault


snippet
<html>
<head>
</head>
<body>
<p style="background-color: rgb(100, 200, 0)"> Never cry for the person who hurts you. Just smile and say,
thanks for giving me a chance to find someone better than you. </p>
<div style="background-color: #00ff00"> Never cry for the person who hurts you.
Just smile and say, thanks for giving me a chance to find someone better than you. </div>
</body>
</html>
Related Tutorial
2. Padding
3. Margin
4. Border
5. Cursors