Skip to content

Challenge Give a Background Color to a Div Element

SaintPeter edited this page · 1 revision
Clone this wiki locally

You can set an element's background color with the background-color attribute.

For example, if you wanted an element's background color to be green, you'd use .green-background { background-color: green; } within your style element.

Something went wrong with that request. Please try again.