Adding colours to your web pages can achieve certain visual effect and make them more appealing to your visitors.
You can specify the color of the webpage’s background using the bgcolor attribute of the body element, as shown below:
<body bgcolor=color>
The color attribute can be specified using normal words like red, yellow, blue and more. Another method is by using hexadecimal codes. Hexadecimal is a base 16 number system. Hexadecimal uses A for decimal 10, B for decimal 11, C for decimal 12, D for decimal 13, E for decimal 14 and F for decimal 15. Every color code in HTML is made up of 6 hexadecimal digits, from 000000 to FFFFFF. The hexadecimal codes might seem very complex, however, they actually make up of combination of three primary colors, i.e. red, green and blue(RGB). The last two digits specify the amount of red colour, the middle two digits specify the amount of green colour and the first two digits specify the amount of blue colour.