Background color, height, and width


body {
background-colour: #cc0000;
height: 100px;
width: 100px;
I'm still getting an error and I double checked the syntax.


what is the error? you misspelled color in background-color, i know colour is british, but the web standards are american, so it is color


Oops!It looks like your

doesn't have the right color.



missing word is div..sorry


code not visible, please select your code and press ctrl + k, if you need inline code, put backticks around them (`), backticks are located above the tab key. ANd please post full code


body {
background-color: #CC0000; <--- has to be with uppercase. and color instead of colour.
height: 100px;
width: 100px;


ah...thanx alot.will try this.. Didn't know color code is case sensitive


color code is case insensitive


Make sure you also change the two "div"s to "background-color" this is on your index.html


Your running into the issue of trying to add the code to the body when there is a nested (div)
The correct coding on the stylesheet.css should be as follows....

div {
background-color: #CC0000;
height: 100px;
width: 100px;


Thanx..Much appreciated:blush:


It could be the British spelling of color??


you needed to revive a 3 month old topic for this remark? No, all the web standards are American, which means American grammar, which is color