Background color, please help!


<Below this line, add a link to the EXACT exercise that you are stuck at.>

I dont undestand what is wrong.
<Below this line, in what way does your code behave incorrectly? Include ALL error messages.>

``` Sexy background color!

Favorite Football Teams

  1. The Hawthorn Football Club
  2. San Franscisco 49ers
  3. Barcelona FC
<do not remove the three backticks above>

First of all, you are wrong at the style attribute.
You typed background but, background what?
background size? color? look at the example you have there and check what is wrong with your code

Plus, you need the semi-colons before the quote mark like:

<ol style="STYLE-ATTRIBUTE: yellow;">

or you can type it with no semi-colons at all like:

<ol style="STYLE-ATTRIBUTE: yellow">
1 Like

Background actually does work, it is just a shorthand so that you don’t have to specify what type of background you want to use.

Just thought that you might want to know this as it may save you time with writing css in the future :slight_smile:

Before i answered this thread, i tried to type just background and it didnt work.
plus, i never heard or saw from the lessons that i can use this shorthand because there’s no such thing

You can go create a new code bit or use a text editor to try it out :slight_smile: There are lots of things that the lessons don’t teach, because there is a lot of stuff to learn about it.

I would suggest expanding your learning in html and css to other websites as well. There is one very good YouTube channel named TheNewBoston that will help with that :slight_smile:

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.