Ask coding questions

← Back to all posts
how to change the background colour
Maggybarbie1995 (0)

i have made sure the colors are different but when i run it tells me i have failed the test,what may be the problem?

ash15khng (712)

To define background colour in CSS:

div {
    background-color: red;
    /* note there is a dash between background and color */