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