color: rgb(255, 255, 255) : color « CSS « HTML / CSS






color: rgb(255, 255, 255)

  

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
    <head>
        <title> </title>
        <style type='text/css' media='all'>
            body {
                font-size: 12px;
            }
            h1 {
                font-size: 25px;
                background: rgb(255, 192, 203);
                padding: 25px;
                border: thin solid rgb(0, 0, 0);
            }
            p {
                font-size: 11px;
                padding: 11px;
                border: thin solid rgb(0, 0, 0);
                background: rgb(128, 128, 128);
                color: rgb(255, 255, 255);
            }
        </style>
    </head>
    <body>
        <h1>
            This is a heading
        </h1>
        <p>
            This is a paragraph of text.
        </p>
    </body>
</html>

   
  








Related examples in the same category

1.'color' Example
2.color: lime
3.color:black
4.Named colors
5.color: crimson;
6.color: forestgreen;
7.color: darkkhaki;
8.color: green;
9.color: darkslateblue;
10.color: darkred;