HTML Background Color

This page contains HTML background color. Feel free to copy and paste the HTML background color into your own website, blog, MySpace page, or other HTML document. And feel free to modify the code as you wish.

Background Color Code

This example code applies a background color to a p tag using the background-color property. You can apply background color to any other HTML element, such as a div tag, body tag etc. Here, we also apply color to the text by using the color property.

Source CodeResult

This text has got a background color applied. You could also apply background color to the whole page if you like.

Background Color for the Whole Page

To set the background for the whole page, simply apply the background property against the body tag.

Example:

Choose a Color

Don't know which color to choose? Select a color from the HTML color picker.