Background Color


#1

i don't understand why i don't pass the code

<!DOCTYPE html>
<html>
    <head>
        <title>Sexy background color!</title>
    </head>
    <body p 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>

#2







Favorite Football Teams



  1. The Hawthorn Football Club

  2. San Franscisco 49ers

  3. Barcelona FC




#3

Did you format your code? It isn't showing up for me.


#4

how can i dot that






Favorite Football Teams



  1. The Hawthorn Football Club

  2. San Franscisco 49ers

  3. Barcelona FC




#5

when you add the style attribute to the body tag, there is no need to include a p, style is an attribute which can just be added to the body opening tag, not only to paragraphs

As for making code show, we have a help topic for it:


#6

highlight your code, then click the button on the screen that looks like this </> and it will format your code; or you can use backpacks like this ` that open and close your code . Unless of course you are using images and they just aren't loading.


#7







Favorite Football Teams



  1. The Hawthorn Football Club

  2. San Franscisco 49ers

  3. Barcelona FC



indent preformatted text by 4 spacesindent preformatted text by 4 spaces

#8

did you check the help topic i linked to? And did you see my answer which solves your problem? Also, i made your original code visible, you can edit it to see how i achieved it


#9

<!DOCTYPE html>
<html>
<head>
<title>Sexy background color!</title>
</head>
<body p 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>


#10

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


#11

close enough, but you still have the p inside your body opening tag, while (as i explained) there is no need for it, style can just as well be added to body as to a paragraph, if you add it to body, no need to include a p


#12

i left the p but it still didn't work


#13

oh wait he does now without the p Thank you for helping !