Background Color

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>
Sexy background color!

Favorite Football Teams

  1. The Hawthorn Football Club
  2. San Franscisco 49ers
  3. Barcelona FC

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

how can i dot that

Sexy background color!

Favorite Football Teams

  1. The Hawthorn Football Club
  2. San Franscisco 49ers
  3. Barcelona FC

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:

1 Like

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.

Sexy background color!

Favorite Football Teams

  1. The Hawthorn Football Club
  2. San Franscisco 49ers
  3. Barcelona FC
`indent preformatted text by 4 spaces``indent preformatted text by 4 spaces`

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

`

Sexy background color!

Favorite Football Teams

  1. The Hawthorn Football Club
  2. San Franscisco 49ers
  3. Barcelona FC
`

`

Sexy background color!

Favorite Football Teams

  1. The Hawthorn Football Club
  2. San Franscisco 49ers
  3. Barcelona FC
`

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

i left the p but it still didn’t work

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