Change background color of an element using CSS

You can change the background colour of an element like a DIV, a Table or even the document body, using CSS. The CSS background-color property will this for you. Here's a demo.

Select a color from the list and click “Reset” button

{ background-color: Orange }

Go back to Tutorial
More interesting and interactive Demos