CSS
Background Colors

In HTML background colors and background image can be applied to the whole page or to a table. CSS provides the facility to apply background color to whole page word.

The property used for this purpose id background-color.

Basic Syntax

                    

p{
   background-color: blue;
}

Background Color Example

                    

<!doctype html>  
<html>
    <head>
        <title>...</title>
    </head>
  
    <body>
       <p style="background-color: yellow;">Learn CSS with PHPDocs community</p>
    </body>
</html>