background color for div in html code example Example: turn a div green div { background-color: green; }