background : color : Style Basics HTML CSS TUTORIALS


HTML CSS TUTORIALS » Style Basics » color »

 

background


 

<!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'>
                span {
                  background: lightblue;
                }
                span.valign {
                  font-size: 16px;
                    color: white;
                    background: steelblue;
                    font-weight: bold;
                }

            </style>
        </head>
        <body>

            <p>
                <span>
                    If Peter Piper picked a peck of 
                        <span class='valign'>pickled</span> 
                    peppers,
                </span>
            </p>

        </body>
    </html>

 



HTML code for linking to this page:

Follow Navioo On Twitter

HTML CSS TUTORIALS

 Navioo Style Basics
» color