Using CSS Background Property or CSS Background-color property you can set the background color of the Div tag throught CSS styles. If you have nested a Div tag inside the other tag then by specifying the background color of outer div will do the whole work. If you will not specify the background color for nested Div tag then it will work as a transparent Div element. It will automatically inherit the background color of outer div tag.