Background Color


#1

<!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?


HTML Basics II : Lesson 12 Couleur de fond
#2

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


#3

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.


#4

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

What have I done wrong?


#5

you misspelled background


#6

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


#7

Post your code or take a screenshot and upload it here


#9

what am i doing wrong?!!


#10

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


#11

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>


#12

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

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


#13

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:


#14

anyone see whats wrong with mine?


#15

Line 6: replace "stlye" with "style"...

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


#16

thanks!

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


#17

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


#19

For ol tag you are missing the n in background


#20

2 posts were split to a new topic: Background color