This forum is now read-only. Please use our new forums at discuss.codecademy.com.

About You Forum

View Course » View Exercise

81 points
0f137600b01da65440984b0d4d818503?s=140&d=retro
Submitted by
heacockantonia
almost 2 years ago

7/21 Set the body's "color" attribute to "white".

Alright so I am trying to set the body color to white and I wrote color:white in my code inside the as you can see. I tried moving the curly parentheses and checking for errors. I also tried to write body color:white and bodyColor:white
I keep getting the error code "Oops, try again. Set the body's "color" attribute to "white"
Please help! I can't get past this! Thanks for your time and effort in reading this.

<!DOCTYPE html><head><style> body{text-align:center;} body{text-align:center;}</style></head>

<div>;<div style="visibility: hidden"> </div>}{**<body>** text-align:center;}

<!-- I'm a comment. You won't actually see me on the web page.
     You should write your header in the line below me! -->
<h1>Antonia Heacock</h1>
<p>Hello! I am a creative and independent teenager aspiring to study software engineering at the United States Airforce Academy, and become a software engineer or go into Wall Street business without the traditional MBA route at a top teir business University. I enjoy running Cross Country, Track & Field, and I swim for conditioning. I love playing the Sims, partying, and drinking earl grey tea. This is my first Website! :)</p>
<input type="email" placeholder="Email">
<input type="submit">
**body {
text-align:center;
background:black;
color: white;} </body>**

0 votes

permalink

Hi heacockantonia,

Putting this CSS code:

body {
text-align:center;
background:black;
color: white;}

In with your HTML code is going to cause a problem. All of your CSS code belongs in the <style> ... </style> section.

3691 points
55df2afa95e3787b9200005e_359368177
Submitted by
Judy
almost 2 years ago