Background Color

<!DOCTYPE html>
<html>
    <head>
        <title>Sexy background color!</title>
    </head>
    <body style=background-color:brown>
        <h3>Favorite Football Teams</h3>
            <ol style=background-color:yellow>
                <li>The Hawthorn Football Club</li>    
                <li>San Franscisco 49ers</li>
                <li>Barcelona FC</li>
            </ol>            
    </body>
</html>

What’ wrong guys?

You seem to miss some quotation marks around your style property and value:

<p style="property: value">

for next time, use one of the two following options to make your code/indent is visible:

select your code and press ctrl + shift + c (or cmd + shift + c if you use a mac)

if this instructions are unclear, you can also insert 3 backticks before and after your code, like so:

```
<p>visible</p>
```

the backtick is located above the tab key on your keyboard

Tu as oublié les guillemets comme on te disait précédemment et le point virgule au bout de “marron” et de “jaune”. Essaies comme ça et tu me rediras.

Im having the same problem but I have the quotation marks around it,

What have I done wrong?

you misspelled background

1 Like

i am also having the same errors …can anyone explain me briefly…
how to change the background color…

Post your code or take a screenshot and upload it here

what am i doing wrong?!!

Φίλε μου, you have to remove the “p” after the <ol> opening tag and the </p> tag on line 8.

1 Like

In the <ol> and <body> opening tag, remove the p, it serves no purpose, style is just a attribute you can add to many opening tags, not just <p>

1 Like

Ωραίος, ευχαριστώ πολύ ρε Δημήτρη! :wink:

Τώρα αρχίζω να καταλαβαίνω την γλώσσα πολυ καλήτερα. :slight_smile:

Also thank you stetim i was stuck at this point for a lot time before posting it here! :laughing:

Now I understood the use of the style better :yum:

anyone see whats wrong with mine?

Line 6: replace “stlye” with “style”…

Your body’s background didn’t change. So something had to go wrong with this part.

thanks!

kept looking at what was in quotes, next time I’ll read the entire line!

1 Like

Don’t know what I did wrong. Can I get a hand?

For ol tag you are missing the n in background

2 posts were split to a new topic: Background color