CSS Property Value How to - background-color: #cccccc;








Question

We would like to know how to background-color: #cccccc;.

Answer


<html>
<!--   w  w w  .j  a v a 2  s. c om-->
<head>

<style>
body {
  background-color: #cccccc;
  color: #000000
}

b {
  background-color: #FF0000;
  color: #FFFFFF;
}

p {
  background-color: rgb(255, 255, 255);
}
</style>
</head>

<body>
  <p>
    This example illustrates the <b>background-color</b> property.
  </p>
</body>
</html>

The code above is rendered as follows: